[PATCH] Avoid array-bounds warning in testsuite on i586
Florian Weimer
fweimer@redhat.com
Wed Jun 29 15:01:00 GMT 2016
On 06/29/2016 03:54 PM, Andreas Schwab wrote:
> Florian Weimer <fweimer@redhat.com> writes:
>
>> Or we could cast to uintptr_t before subtracting 1.
>
> That works.
>
> Andreas.
>
> Subject: [PATCH] Avoid array-bounds warning for strncat on i586
>
> [BZ #20260]
> * sysdeps/x86/bits/string.h (__strncat_g) [!__i686__]: Compute the
> address before the beginning of the string as an integer to avoid
> array-bounds warning.
Looks good to me.
Thanks,
Florian
More information about the Libc-alpha
mailing list