Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#2296 closed Bugs (fixed)

Xpressive walking past the end of string

Reported by: Simon Steele <s.steele@…> Owned by: Eric Niebler
Milestone: Boost 1.37.0 Component: xpressive
Version: Boost 1.36.0 Severity: Problem
Keywords: Cc:

Description

The following test code triggers an assertion in std::string::operator ++ under VC 8:

string s("> \"\" ");
string exp("(?P<f>.+):(?P<l>[0-9]+):((?P<c>[0-9]+):)?.*");

sregex re = sregex::compile(exp);
regex_search(s, re);

The previous call in the stack is boost::next, called from simple_repeat_matcher.hpp at line 181, right below a BUGBUG comment!

Change History (3)

comment:1 by Eric Niebler, 14 years ago

Status: newassigned

confirmed

comment:2 by Eric Niebler, 14 years ago

Resolution: fixed
Status: assignedclosed

(In [48661]) past-the-end iterator, fixes #2296

comment:3 by sdiederich, 14 years ago

(In [48821]) silence MSVC8 warnings through pragmas, fixes #2296

Note: See TracTickets for help on using tickets.