[Bug regex/429] New: regex hangs on backreferences
jakub at redhat dot com
sourceware-bugzilla@sources.redhat.com
Thu Oct 7 11:00:00 GMT 2004
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.
More information about the Glibc-bugs
mailing list