summaryrefslogtreecommitdiff
path: root/sysdeps/ieee754/ldbl-128ibm/strtold_l.c
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2022-09-20 17:58:04 -0700
committerSunil K Pandey <skpgkp2@gmail.com>2022-11-24 15:12:44 -0800
commit017b9df5ea2694a8dc24b81934b9c5b014040c85 (patch)
tree05e5009e1b3fa0d0c750a6a1fe7b570c96c6aa01 /sysdeps/ieee754/ldbl-128ibm/strtold_l.c
parent67e310afb91fa27295f7cf5140176efd6ba5dd51 (diff)
downloadglibc-release/2.33/master.tar.gz
x86: Fix wcsnlen-avx2 page cross length comparison [BZ #29591]release/2.33/master
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. (cherry picked from commit b0969fa53a28b4ab2159806bf6c99a98999502ee)
Diffstat (limited to 'sysdeps/ieee754/ldbl-128ibm/strtold_l.c')
0 files changed, 0 insertions, 0 deletions