Boost C++ Libraries: Ticket #8569: boost::regex crashes https://svn.boost.org/trac10/ticket/8569 <p> boost::wregex reg(pattern, boost::regex::perl | boost::regex::icase); </p> <p> where pattern is: L"(SLA_LOG.*?)<br />s*{<br />s*PRX<br />s*=&gt;<br />s*(<br />d+).*?" </p> <p> Crashes when parsing pattern. Compiled under MS VS 2010. Please help. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8569 Trac 1.4.3 anonymous Mon, 13 May 2013 18:20:55 GMT <link>https://svn.boost.org/trac10/ticket/8569#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8569#comment:1</guid> <description> <p> Sorry, but the correct pattern is: <code>L"(FILE_TYPE.*?)\\s*{\\s*PRIO\\s*=&gt;\\s*(\\d+).*?"</code> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Mon, 13 May 2013 21:31:05 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/8569#comment:2 https://svn.boost.org/trac10/ticket/8569#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">regex</span> </li> </ul> Ticket anonymous Mon, 13 May 2013 23:21:44 GMT <link>https://svn.boost.org/trac10/ticket/8569#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8569#comment:3</guid> <description> <p> To be precisely it doesn't crash, it just generates an exception when parsing: '{' character. Perl handles this correctly, here - it has to be escaped in order to work correctly... </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Sun, 19 May 2013 11:12:17 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/8569#comment:4 https://svn.boost.org/trac10/ticket/8569#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/84371" title="When a {} repeat sequence is invalid or incomplete, and the language ...">[84371]</a>) When a {} repeat sequence is invalid or incomplete, and the language is Perl, then backtrack and treat the sequence as a literal, not a repeat operator. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8569" title="#8569: Bugs: boost::regex crashes (closed: fixed)">#8569</a>. </p> Ticket John Maddock Fri, 24 May 2013 12:07:42 GMT <link>https://svn.boost.org/trac10/ticket/8569#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8569#comment:5</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/84460" title="Document bug fix. Regenerate docs. Refs #8569.">[84460]</a>) Document bug fix. Regenerate docs. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8569" title="#8569: Bugs: boost::regex crashes (closed: fixed)">#8569</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Fri, 24 May 2013 17:09:51 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8569#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8569#comment:6</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/84463" title="Merge regex bug fix. Refs #8569.">[84463]</a>) Merge regex bug fix. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8569" title="#8569: Bugs: boost::regex crashes (closed: fixed)">#8569</a>. </p> </description> <category>Ticket</category> </item> </channel> </rss>