Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2006-07-21 09:43:33

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:

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
- 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)


You can respond by visiting:

Take Surveys. Earn Cash. Influence the Future of IT
Join's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at