aboutsummaryrefslogtreecommitdiff
path: root/string/strcoll.c
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2021-06-23 01:56:29 -0400
committerH.J. Lu <hjl.tools@gmail.com>2022-01-27 16:00:54 -0800
commita0ce6805989cb48cae3346f84e30a7f69b6e99e6 (patch)
tree0fe2619602324d2729b6133afaff72a8ff58e74f /string/strcoll.c
parent178292fe011d5745aa0dd7ea99b388c30512fbdb (diff)
downloadglibc-a0ce6805989cb48cae3346f84e30a7f69b6e99e6.zip
glibc-a0ce6805989cb48cae3346f84e30a7f69b6e99e6.tar.gz
glibc-a0ce6805989cb48cae3346f84e30a7f69b6e99e6.tar.bz2
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 a775a7a3eb1e85b54af0b4ee5ff4dcf66772a1fb)
Diffstat (limited to 'string/strcoll.c')
0 files changed, 0 insertions, 0 deletions