
Bugs item #1526472, was opened at 2006-07-21 13:43 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1526472&group_id=7586 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: regex Group: None Status: Open Resolution: None Priority: 5 Submitted By: Gianni Ceccarelli (dakkar) Assigned to: John Maddock (johnmaddock) Summary: regex_token_iterator can segfault Initial Comment: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1526472&group_id=7586 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Boost-bugs mailing list Boost-bugs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/boost-bugs