about summary refs log tree commit diff
path: root/sysdeps/x86_64/multiarch/strlen-avx2.S
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2021-06-09 16:25:32 -0400
committerNoah Goldstein <goldstein.w.n@gmail.com>2021-06-23 14:13:03 -0400
commit645a158978f9520e74074e8c14047503be4db0f0 (patch)
tree555f54e79a7195f522ffbcf11f240e7f40259ca3 /sysdeps/x86_64/multiarch/strlen-avx2.S
parentda5a6fba0febbfc90896ce1b2eb75c6d8a88a72d (diff)
downloadglibc-645a158978f9520e74074e8c14047503be4db0f0.tar.gz
glibc-645a158978f9520e74074e8c14047503be4db0f0.tar.xz
glibc-645a158978f9520e74074e8c14047503be4db0f0.zip
x86: Fix overflow bug with wmemchr-sse2 and wmemchr-avx2 [BZ #27974]
This commit fixes the bug mentioned in the previous commit.

The previous implementations of wmemchr in these files relied
on n * 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>
Diffstat (limited to 'sysdeps/x86_64/multiarch/strlen-avx2.S')
0 files changed, 0 insertions, 0 deletions