diff options
author | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-09-20 17:58:04 -0700 |
---|---|---|
committer | Sunil K Pandey <skpgkp2@gmail.com> | 2022-11-24 15:12:44 -0800 |
commit | 017b9df5ea2694a8dc24b81934b9c5b014040c85 (patch) | |
tree | 05e5009e1b3fa0d0c750a6a1fe7b570c96c6aa01 /libio/__freadable.c | |
parent | 67e310afb91fa27295f7cf5140176efd6ba5dd51 (diff) | |
download | glibc-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 'libio/__freadable.c')
0 files changed, 0 insertions, 0 deletions