public inbox for glibc-bugs-regex@sourceware.org
help / color / mirror / Atom feed
* [Bug regex/429] New: regex hangs on backreferences
@ 2004-10-07 11:00 jakub at redhat dot com
  2004-10-07 14:17 ` [Bug regex/429] " gotom at debian dot or dot jp
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: jakub at redhat dot com @ 2004-10-07 11:00 UTC (permalink / raw)
  To: glibc-bugs-regex

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.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2004-11-12 12:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-07 11:00 [Bug regex/429] New: regex hangs on backreferences jakub at redhat dot com
2004-10-07 14:17 ` [Bug regex/429] " gotom at debian dot or dot jp
2004-11-04  8:43 ` bonzini at gnu dot org
2004-11-04  9:04 ` bonzini at gnu dot org
2004-11-09  7:55 ` bonzini at gnu dot org
2004-11-09 15:24 ` jakub at redhat dot com
2004-11-09 15:51   ` Paolo Bonzini
2004-11-09 15:51 ` paolo dot bonzini at lu dot unisi dot ch
2004-11-10 10:53 ` bonzini at gnu dot org
2004-11-12 12:22 ` bonzini at gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).