glibc/sysdeps
Noah Goldstein b0969fa53a x86: Fix wcsnlen-avx2 page cross length comparison [BZ #29591]
Previous implementation was adjusting length (rsi) to match
bytes (eax), but since there is no bound to length this can cause
overflow.

Fix is to just convert the byte-count (eax) to length by dividing by
sizeof (wchar_t) before the comparison.

Full check passes on x86-64 and build succeeds w/ and w/o multiarch.
2022-09-28 20:15:16 -07:00
..
aarch64 Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
alpha Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
arc Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
arm Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
csky Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
generic m68k: Enforce 4-byte alignment on internal locks (BZ #29537) 2022-09-20 10:56:54 -03:00
gnu errlist: add missing entry for EDEADLOCK (bug 29545) 2022-09-08 11:40:24 +02:00
hppa Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
htl htl: Make pthread*_cond_timedwait register wref before releasing mutex 2022-08-22 22:27:24 +02:00
hurd hurd: Fix pthread_kill on exiting/ted thread 2022-01-15 15:11:54 +01:00
i386 i386: Use cmpl instead of cmp 2022-08-05 09:28:39 -03:00
ia64 Update _FloatN header support for C++ in GCC 13 2022-09-28 20:10:08 +00:00
ieee754 Update _FloatN header support for C++ in GCC 13 2022-09-28 20:10:08 +00:00
loongarch Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
m68k Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
mach hurd: Fix typo 2022-09-28 19:21:44 +02:00
microblaze Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
mips Update _FloatN header support for C++ in GCC 13 2022-09-28 20:10:08 +00:00
nios2 Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
nptl Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
or1k Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
posix get_nscd_addresses: Fix subscript typos [BZ #29605] 2022-09-28 12:47:10 -04:00
powerpc Update _FloatN header support for C++ in GCC 13 2022-09-28 20:10:08 +00:00
pthread Do not define static_assert or thread_local in headers for C2x 2022-09-07 18:39:28 +00:00
riscv Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
s390 Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
sh Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
sparc Use atomic_exchange_release/acquire 2022-09-26 16:58:08 +01:00
unix Use C11 atomics instead of atomic_increment(_val) 2022-09-23 15:59:56 +01:00
wordsize-32 Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
wordsize-64 Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
x86 Update _FloatN header support for C++ in GCC 13 2022-09-28 20:10:08 +00:00
x86_64 x86: Fix wcsnlen-avx2 page cross length comparison [BZ #29591] 2022-09-28 20:15:16 -07:00