]> 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:22:39 +0000 (16:22 -0400)
commit726978490fe8a26a1343ac314d00dd48924a1799
tree361eea745dd553115f6a4cde9a32618a885d6114
parentcec24099fb06c785b89119aab93940312c2949ba
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