Boost C++ Libraries: Ticket #2022: Found crash of boost for characters ' * ' , ' a* ' , & " abc** " https://svn.boost.org/trac10/ticket/2022 <p> Hi, I have found crash of Boost Regex Library whenever I give search Pattern '*' or 'a*' or 'abc<strong>' i.e. multiple occurence of * My code is like this: </strong></p> <p> #include "<a class="missing wiki">GrepWrapper</a>.h" #include &lt;stdio.h&gt; using namespace std; char pattern[] = </p> <blockquote> <p> "aa moduladfe=message&amp;_action=view5080|" "*|" "*GET|" "ya<strong>|" "tarewq*|" ; </strong></p> </blockquote> <p> char buf[] = </p> <blockquote> <p> "GET" "yaaaa" "GET"; </p> </blockquote> <p> int main(int argc, char <strong>argv) { </strong></p> <blockquote> <p> int nRetValue = 0; CGrepWrapper objGrepWrapper; objGrepWrapper.<a class="missing wiki">SetSearchPattern</a>(pattern); </p> </blockquote> <blockquote> <blockquote> <p> ACE_Vector&lt;std::string&gt; vOutputVector; nRetValue = objGrepWrapper.<a class="missing wiki">ApplyFilter</a>(buf, 10, vOutputVector, true); int nVectorLen = vOutputVector.size(); if (nVectorLen &gt; 0) { </p> <blockquote> <p> for (int i = 0 ; i &lt; nVectorLen; i++) { </p> <blockquote> <p> printf("\t%s", vOutputVector[i].c_str()); vOutputVector.pop_back(); </p> </blockquote> <p> } </p> </blockquote> <p> } else { </p> <blockquote> <p> <em>printf("\nNot Found"); </em></p> </blockquote> <p> } </p> </blockquote> <p> return 0; </p> </blockquote> <p> } </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2022 Trac 1.4.3 John Maddock Fri, 11 Jul 2008 16:21:31 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2022#comment:1 https://svn.boost.org/trac10/ticket/2022#comment:1 <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">invalid</span> </li> </ul> <p> Neither "*" nor "abc<strong>" are valid regular expressions: as a result Boost.Regex will throw a boost::regex_error exception. It's up to you to catch the exception, if you don't then the program *will* terminate with an uncaught exception error. This behaviour is intentional. </strong></p> <p> HTH, John Maddock. </p> Ticket Mon, 03 Nov 2008 14:20:34 GMT milestone deleted https://svn.boost.org/trac10/ticket/2022#comment:2 https://svn.boost.org/trac10/ticket/2022#comment:2 <ul> <li><strong>milestone</strong> <span class="trac-field-deleted">Boost 1.35.1</span> </li> </ul> <p> Milestone Boost 1.35.1 deleted </p> Ticket