This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug regex/874] New: regcomp regression


The regcomp function in current CVS and Fedora rawhide no longer accepts
dual-bracket regular expressions.

This piece of code works on GNU libc <= 2.3.5, FreeBSD and OpenBSD without
problems, but with the additional regcomp change that has been done to CVS this
piece of code returns 7, which means a problem with brackets (missing ] while
opened with [ for example). This issue also affects tools like grep.

#include <sys/types.h>
#include <regex.h>
#include <stdlib.h>
#include <stdio.h>

int
main (int argc, char **argv)
{
  int err;
  regex_t r;
  err = regcomp (&r, "[[:space:]]", REG_EXTENDED);
  if (err != 0) {
    printf("%d\n", err);
  }
  return 0;
}

-- 
           Summary: regcomp regression
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: critical
          Priority: P2
         Component: regex
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: jan at jgc dot homeip dot net
                CC: glibc-bugs-regex at sources dot redhat dot com,glibc-
                    bugs at sources dot redhat dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://sources.redhat.com/bugzilla/show_bug.cgi?id=874

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]