[regex] Fix BZ429

Jakub Jelinek jakub@redhat.com
Fri Nov 12 10:59:00 GMT 2004


On Thu, Nov 11, 2004 at 10:48:29PM -0800, Ulrich Drepper wrote:
> I get:
> 
> m[0] = "civic"
> m[1] = "c"
> m[2] = "i"
> m[3] = ""
> m[4] = ""
> m[5] = ""
> m[6] = ""
> m[7] = ""
> m[8] = ""
> m[9] = ""
> 
> which is pretty much all wrong.

Why?  That's IMHO the expected result.
If you modify your testcase, so that it does only:
  p = "^(.?)(.?)(.?)(.?)(.?).?"
    "\\5\\4\\3\\2\\1$";
(so that it finishes in reasonable time)
and run it against vanilla CVS, you get:
m[0] = "civic"
m[1] = "c"
m[2] = "i"
m[3] = ""
m[4] = ""
m[5] = ""
m[6] unused
m[7] unused
m[8] unused
m[9] unused

	Jakub



More information about the Libc-alpha mailing list