Bug ID: 21673
Summary: a regexec call with REG_STARTEND finds a bogus match
Assignee: unassigned at sourceware dot org
Reporter: bensberg at telfort dot nl
CC: drepper.fsp at gmail dot com
Target Milestone: ---
When calling regexec with the REG_STARTEND flag and providing
an end-of-range value (in .rm_eo) that points to somewhere in
the middle of a word, regexec will nevertheless find a match
for \> at that offset. The corresponding case for \<, with a
start-of-range value (in .rm_so) that points to the middle of
a word, will /not/ find a match for \< there. The latter is
what I expected, the former was a surprise.
Compile the attached until.c and run it.
The actual output is:
Found tail at 6: '. '
Found tail at 4: 'rd. '
The second line of output shouldn't have been there, because
the word does not end after "wo".
First seen on Ubuntu Lucid (10.04). Still present on Ubuntu
Zesty (17.04, glibc 2.24).
You are receiving this mail because:
You are on the CC list for the bug.