[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug in autoconf-2.64
From: |
Eric Blake |
Subject: |
Re: bug in autoconf-2.64 |
Date: |
Thu, 24 Feb 2011 10:17:46 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7 |
On 02/24/2011 10:15 AM, Eric Blake wrote:
> [dropping bug-autoconf, bug-m4]
>
> On 02/24/2011 09:04 AM, Jim Meyering wrote:
>> FYI,
>>
>> Here's a much-reduced test case for the short-needle case:
>>
>> const char *needle = ".d.";
>> const char *haystack = "..d.";
>> const char* p = strstr (haystack, needle);
>> ASSERT (p && p - haystack == 1);
>>
>> Interestingly, it doesn't trigger a failure in glibc's
>> slightly different implementation. Eric mentioned
>> privately that glibc does not yet have gnulib's commit
>> fffd5faca, and that affects periodicity detection.
>
> Not quite right. But Jim and I did discover:
>
> needle "." and haystack "..wi.d." fails with gnulib.
needle ".d." and haystack "..wi.d."
(now both of us have mistyped a test case)
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: bug in autoconf-2.64, Ralf Wildenhues, 2011/02/24
- Re: bug in autoconf-2.64, Ralf Wildenhues, 2011/02/24
- Re: bug in autoconf-2.64, Jim Meyering, 2011/02/24
- Re: bug in autoconf-2.64, Eric Blake, 2011/02/25
- [PATCH] strstr: revert patches that introduced bug and pessimization, Eric Blake, 2011/02/25