]> 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:25:02 +0000 (16:25 -0400)
commiteec993cb1a38c0b35fa225adb481165fb7491f5b
tree37d83afd3a2cecf71687bbb6ed3977061f7f6f9a
parentffe768a90912f9bce43b70a82576b3dc99e3121c
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