* Ralf Wildenhues wrote on Wed, Feb 23, 2011 at 09:08:07PM CET: > I can confirm the issue, but my bisect ended at > 5e763da323f3927159b6c151f186569a9929ddbe instead.
> I'm starting bisect over the gnulib update in above commit now, > which ranges from c0ebdfe226c38c72db7c1944113fd19ff534e362 to > b86f488e783121f54dbd44e17741fa3b29e9be9b. That converged at this gnulib commit on Debian GNU/Linux with glibc 2.11.2 installed: commit c823199df2cc03b6bd70d0a2fef5999af82792fe Author: Eric Blake <ebl...@redhat.com> Date: Tue Oct 5 16:39:32 2010 -0600 memmem, strstr, strcasestr: fix bug with long periodic needle * lib/str-two-way.h (two_way_long_needle): Avoid bug with long periodic needle having false positive. * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12 and cygwin 1.7.7. (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling. * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE) (gl_FUNC_STRCASESTR): Likewise. * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise. * tests/test-memmem.c (main): Expose the bug. * tests/test-strcasestr.c (main): Likewise. * tests/test-strstr.c (main): Likewise. * tests/test-c-strcasestr.c (main): Likewise. * doc/glibc-functions/memmem.texi (memmem): Document the bug. * doc/posix-functions/strstr.texi (strstr): Likewise. * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise. Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092 This still doesn't mean that this is the buggy commit: it can still be something else in the code, as the commit changes whether gl_cv_func_strstr_linear is, and gl_cv_func_strstr_works_always is not set; but it's getting late for me now. Cheers, Ralf