From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5564 invoked by alias); 7 Oct 2004 11:00:40 -0000 Mailing-List: contact glibc-bugs-regex-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-regex-owner@sources.redhat.com Received: (qmail 5471 invoked by uid 48); 7 Oct 2004 11:00:35 -0000 Date: Thu, 07 Oct 2004 11:00:00 -0000 From: "jakub at redhat dot com" To: glibc-bugs-regex@sources.redhat.com Message-ID: <20041007110031.429.jakub@redhat.com> Reply-To: sourceware-bugzilla@sources.redhat.com Subject: [Bug regex/429] New: regex hangs on backreferences X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg00000.txt.bz2 List-Id: Just so that it isn't forgotten. bug-regex11.c still has a few tests commented out that hang glibc regexec. E.g. #include #include 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.