This is the mail archive of the
glibc-bugs-regex@sourceware.org
mailing list for the glibc project.
[Bug regex/11053] Wrong results with backreferences
- From: "bonzini at gnu dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs-regex at sources dot redhat dot com
- Date: 9 Apr 2010 17:46:04 -0000
- Subject: [Bug regex/11053] Wrong results with backreferences
- References: <20091204193539.11053.bonzini@gnu.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From bonzini at gnu dot org 2010-04-09 17:46 -------
Minimized testcases (same regex):
$ echo 8 | grep -E -e "$regex"
8 # >>> okay
$ echo 87 | grep -E -e "$regex"
Segmentation fault
$ echo 88 | grep -E -e "$regex"
88 # >>> okay
$ echo 887 | grep -E -e "$regex"
Segmentation fault
Also, everything I tried to feed that is of length 9 or higher and should not
match, gives either a false positive or a segfault:
$ echo 987654321 | grep -E -e "$regex"
887654321
$ echo 484635532 | grep -E -e "$regex"
484635532
$ echo 0123454321 | grep -E -e "$regex"
Segmentation fault
$ echo 0000123454321 | grep -E -e "$regex"
Segmentation fault
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|Segfault on invalid |Wrong results with
|backreference |backreferences
http://sourceware.org/bugzilla/show_bug.cgi?id=11053
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.