]> git.ipfire.org Git - thirdparty/glibc.git/commit
Fix v9/64-bit strcmp when string ends in multiple zero bytes.
authorDavid S. Miller <davem@davemloft.net>
Wed, 30 Apr 2014 19:57:51 +0000 (12:57 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 May 2014 20:21:03 +0000 (16:21 -0400)
commit6427ccf5a004a70d8308bdadc46c7da3ac43932c
treec667ee8dc52a0b649a4ccbf5a0666983cfaffd75
parente9586e58a55ea2a22b899bbb3adb5364f4b6596b
Fix v9/64-bit strcmp when string ends in multiple zero bytes.

[BZ #16885]
* sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
multiple zero bytes exist at the end of a string.
Reported by Aurelien Jarno <aurelien@aurel32.net>

* string/test-strcmp.c (check): Add explicit test for situations where
there are multiple zero bytes after the first.
ChangeLog
string/test-strcmp.c
sysdeps/sparc/sparc64/strcmp.S