Boost C++ Libraries: Ticket #686: regex_token_iterator can segfault https://svn.boost.org/trac10/ticket/686 <pre class="wiki">regex_token_iterator and u32regex_token_iterator can dereference a 0 pointer in the following case: - iterating over a string with no matches for the split regexp - asking for non-matches (the submatches array starts with -1) - incrementing the iterator the first time in the non-unicode version, nothing happens; but in the unicode version, the underlying u8_to_u32_iterator causes a segfault. I'm attaching a small test case, and a (seems working) patch. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/686 Trac 1.4.3 nobody Sun, 23 Jul 2006 17:29:11 GMT status changed https://svn.boost.org/trac10/ticket/686#comment:1 https://svn.boost.org/trac10/ticket/686#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: NO Confirmed. Your patch is correct too. I've applied the patch and updated the test suite accordingly. Thanks, John Maddock. </pre> Ticket