[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question about POSIX regex support

From: Gallagher James
Subject: Question about POSIX regex support
Date: Thu, 21 Jun 2007 16:49:47 -0600


System specifics: Fedora Core 6, intel, gcc/++ 4.1.1.

I've been using gnulib for about two years primarily for its support of POSIX regular expressions. I noticed that after a recent update of gnulib, my regression tests for a regular expression class which uses regcomp(), regexec(), et c., now fail. I update gnulib earlier today and the problems remain.

Problem 1: With a string "123abcdef" and a regex of "abc", after calling regex(...) the resulting pmatch[] has values very different than before. In the past the result of this call was that pmatch [0].rm_so was 3 and pmatch[0].rm_eo was 6. Now I get pmatch[0].rm_so = 3, pmatch[0].rm_eo = 0, pmatch[1].rm_so = 6 and pmatch[1].rm_eo = 0. It seems that the new result is not correct.

Problem 2: Using valgrind I'm getting an Invalid write of 8 bytes on lines 950 and 951 of regexec.c.

My questions are: Has anyone else seen a problem like this? I checked the list archive but nothing jumped out at me. Or is this a problem with the collision of gnulib's regex code and the regex stuff (e.g., the regex.h header) already present on my link box?

James Gallagher                jgallagher at opendap.org
OPeNDAP, Inc                   406.723.8663

reply via email to

[Prev in Thread] Current Thread [Next in Thread]