Bug 22425 - Escape by \ with REG_ICASE
Summary: Escape by \ with REG_ICASE
Status: UNCONFIRMED
Alias: None
Product: glibc
Classification: Unclassified
Component: regex (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL: https://dev.gnupg.org/T2923
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-13 00:52 UTC by Niibe Yutaka
Modified: 2018-06-27 16:47 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments
Test program to show regcomp bug (567 bytes, text/plain)
2017-11-13 00:52 UTC, Niibe Yutaka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Niibe Yutaka 2017-11-13 00:52:33 UTC
Created attachment 10583 [details]
Test program to show regcomp bug

With REG_ICASE, escape by \ (backslash) doesn't work well.
Regexp of \x\y\z is expected to match string of xyz with REG_ICASE.
Comment 1 Andreas Schwab 2017-11-13 08:34:51 UTC
Unknown backslash escapes invoke undefined behaviour.
Comment 2 Adhemerval Zanella 2018-06-27 16:47:08 UTC
(In reply to Andreas Schwab from comment #1)
> Unknown backslash escapes invoke undefined behaviour.

Should we mark this bug as invalid then?