[PATCH] Rewritten v9/64-bit sparc strcmp.
David Miller
davem@davemloft.net
Tue Apr 29 19:37:00 GMT 2014
From: Aurelien Jarno <aurelien@aurel32.net>
Date: Tue, 29 Apr 2014 11:53:39 +0200
> This method doesn't work when comparing a 0x00 char in string 1 and 0x01
> char in string 2. In that case the mask for this byte is 0x01 and the
> corresponding xor is also 0x01. The result of the comparison therefore
> depends on the garbage after the end of the string.
>
> On Debian [1] this causes for example debian-installer to fail to build
> [2], and it might be the source of the random segfaults which we are
> trying to debug for a few years.
>
> [1] http://bugs.debian.org/746310
> [2] http://bugs.debian.org/731806
Thanks a lot for this report, I'll look into it.
More information about the Libc-alpha
mailing list