This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Avoid array-bounds warning in testsuite on i586


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]