[PATCH 07/11] Fix strcmp bug for little endian target
Joseph Myers
josmyers@redhat.com
Thu Jan 23 16:20:27 GMT 2025
On Thu, 23 Jan 2025, Aleksandar Rakic wrote:
> Strcmp gives incorrect result for little endian targets under
> the following conditions:
> 1. Length of 1st string is 1 less than a multiple of 4 (i.e len%4=3)
> 2. First string is a prefix of the second string
> 3. The first differing character in the second string is extended
> ASCII (that is > 127)
Is there a test in the glibc testsuite that fails before and passes after
this patch? If not, one should be added.
--
Joseph S. Myers
josmyers@redhat.com
More information about the Libc-alpha
mailing list