regexec calls with REG_STARTEND find ghost matches for \>
Benno Schulenberg
bensberg@telfort.nl
Mon Jun 26 10:13:00 GMT 2017
Op 25-06-17 om 18:30 schreef Florian Weimer:
> On 01/15/2017 08:29 PM, Benno Schulenberg wrote:
>> 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.
>
> I agree that this looks like a bug. Would you please file it in
> Bugzilla? Thanks.
Bug has been reported:
https://sourceware.org/bugzilla/show_bug.cgi?id=21673
Benno
More information about the Libc-alpha
mailing list