summaryrefslogtreecommitdiff
path: root/locale/programs
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 18:05:33 -0800
commit5ac4f45c1b1afdf5ab9ca0d4c0915fd6980bdccd (patch)
tree375aed9c5487af156a4c1596146419122aedfb35 /locale/programs
parent114e3349de2ef48210c94ac39a54b0d6bd7ba2f3 (diff)
downloadglibc-release/2.29/master.tar.gz
x86: Fix wcsnlen-avx2 page cross length comparison [BZ #29591]release/2.29/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 'locale/programs')
0 files changed, 0 insertions, 0 deletions