This is the mail archive of the
glibc-bugs-regex@sources.redhat.com
mailing list for the glibc project.
[Bug regex/429] New: regex hangs on backreferences
- From: "jakub at redhat dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs-regex at sources dot redhat dot com
- Date: 7 Oct 2004 11:00:35 -0000
- Subject: [Bug regex/429] New: regex hangs on backreferences
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
Just so that it isn't forgotten.
bug-regex11.c still has a few tests commented out that hang glibc regexec. E.g.
#include <regex.h>
#include <stdio.h>
int main ()
{
regex_t rbuf;
const char *p;
int err;
p = "^(.?)(.?)(.?)(.?)(.?)(.?)(.?)(.?)(.?).?"
"\\9\\8\\7\\6\\5\\4\\3\\2\\1$";
if ((err = regcomp (&rbuf, p, REG_NOSUB | REG_EXTENDED))) {
char errstr[300];
regerror (err, &rbuf, errstr, sizeof (errstr));
puts (errstr);
return err;
}
return regexec (&rbuf, "civic", 0, NULL, 0);
}
takes really too long.
--
Summary: regex hangs on backreferences
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: regex
AssignedTo: gotom at debian dot or dot jp
ReportedBy: jakub at redhat dot com
CC: glibc-bugs-regex at sources dot redhat dot com,glibc-
bugs at sources dot redhat dot com
http://sources.redhat.com/bugzilla/show_bug.cgi?id=429
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.