This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: fix strstr, memmem, strcasestr
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Wed, 6 Oct 2010 11:31:06 +0200
- Subject: Re: fix strstr, memmem, strcasestr
- References: <4CABB55D.4020200@redhat.com>
- Reply-to: newlib at sourceware dot org
On Oct 5 17:31, Eric Blake wrote:
> Since it's a bug in my original implementation, and the fix is a
> single line swap, I'm pushing the fix as obvious (whether the
> algorithm is obvious is a different question).
> [...]
> 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.
I didn't see it in CVS so I just applied it.
Thanks,
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat