mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
3f635fb433
Since the size argument is unsigned. we should use unsigned Jcc instructions, instead of signed, to check size. Tested on x86-64 and x32, with and without --disable-multi-arch. [BZ #24155] CVE-2019-7309 * NEWS: Updated for CVE-2019-7309. * sysdeps/x86_64/memcmp.S: Use RDX_LP for size. Clear the upper 32 bits of RDX register for x32. Use unsigned Jcc instructions, instead of signed. * sysdeps/x86_64/x32/Makefile (tests): Add tst-size_t-memcmp-2. * sysdeps/x86_64/x32/tst-size_t-memcmp-2.c: New test. |
||
---|---|---|
.. | ||
fpu | ||
_itoa.h | ||
divdi3.c | ||
dl-machine.h | ||
ffs.c | ||
gmp-mparam.h | ||
Implies-after | ||
Makefile | ||
symbol-hacks.h | ||
sysdep.h | ||
test-size_t.h | ||
tst-size_t-memchr.c | ||
tst-size_t-memcmp-2.c | ||
tst-size_t-memcmp.c | ||
tst-size_t-memcpy.c | ||
tst-size_t-memrchr.c | ||
tst-size_t-memset.c | ||
tst-size_t-strncasecmp.c | ||
tst-size_t-strncmp.c | ||
tst-size_t-strncpy.c | ||
tst-size_t-strnlen.c | ||
tst-size_t-wcsncmp.c | ||
tst-size_t-wcsnlen.c | ||
tst-size_t-wmemchr.c | ||
tst-size_t-wmemcmp.c | ||
tst-size_t-wmemset.c |