glibc/sysdeps
Noah Goldstein 937f2c783a x86: Fix overflow bug in wcsnlen-sse4_1 and wcsnlen-avx2 [BZ #27974]
This commit fixes the bug mentioned in the previous commit.

The previous implementations of wmemchr in these files relied
on maxlen * sizeof(wchar_t) which was not guranteed by the standard.

The new overflow tests added in the previous commit now
pass (As well as all the other tests).

Signed-off-by: Noah Goldstein <goldstein.w.n@gmail.com>
Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit a775a7a3eb)
2022-01-27 15:49:27 -08:00
..
aarch64 aarch64: Fix DT_AARCH64_VARIANT_PCS handling [BZ #26798] 2020-11-04 12:23:20 +00:00
alpha Add libm_alias_finite for _finite symbols 2020-01-03 10:02:04 -03:00
arm arm: CVE-2020-6096: Fix multiarch memcpy for negative length [BZ #25620] 2020-07-14 15:46:21 -04:00
csky Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
generic mips: Fix bracktrace result for signal frames 2020-03-30 23:18:26 +02:00
gnu Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
hppa Add new file missed in previous hppa commit. 2020-05-04 21:56:38 +02:00
htl htl: Add internal version of __pthread_mutex_timedlock 2020-01-13 20:41:07 +01:00
hurd Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
i386 x86: Check IFUNC definition in unrelocated executable [BZ #20019] 2021-01-13 14:02:11 -08:00
ia64 Linux: Use system call tables during build 2020-01-02 10:18:23 +01:00
ieee754 math/test-sinl-pseudo: Use stack protector only if available 2020-03-11 12:25:15 +01:00
init_array Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
m68k Add libm_alias_finite for _finite symbols 2020-01-03 10:02:04 -03:00
mach htl: Add internal version of __pthread_mutex_timedlock 2020-01-13 20:41:07 +01:00
microblaze Linux: Use system call tables during build 2020-01-02 10:18:23 +01:00
mips MIPS: Fix circular definition of __LDBL_MANT_DIG__ in ieee754.h 2020-01-08 14:28:23 -05:00
nios2 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
nptl nptl: Avoid using PTHREAD_MUTEX_DEFAULT in macro definition [BZ #25271] 2020-01-30 15:54:49 +01:00
posix posix: Fix system error return value [BZ #25715] 2020-03-24 09:15:19 -03:00
powerpc powerpc64: Workaround sigtramp vdso return call 2021-03-08 11:16:27 -03:00
pthread Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
riscv Add libm_alias_finite for _finite symbols 2020-01-03 10:02:04 -03:00
s390 S390: Also check vector support in memmove ifunc-selector [BZ #27511] 2021-03-26 11:01:51 +01:00
sh sh: Add sh4 fpu Implies folder 2020-11-27 09:34:02 -03:00
sparc Add libm_alias_finite for _finite symbols 2020-01-03 10:02:04 -03:00
unix sh: Add sh4 fpu Implies folder 2020-11-27 09:34:02 -03:00
wordsize-32 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
wordsize-64 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
x86 x86: Add string/memory function tests in RTM region 2022-01-27 11:40:18 -08:00
x86_64 x86: Fix overflow bug in wcsnlen-sse4_1 and wcsnlen-avx2 [BZ #27974] 2022-01-27 15:49:27 -08:00