diff options
author | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-09-20 17:58:04 -0700 |
---|---|---|
committer | Noah Goldstein <goldstein.w.n@gmail.com> | 2022-09-28 20:15:16 -0700 |
commit | b0969fa53a28b4ab2159806bf6c99a98999502ee (patch) | |
tree | 8aafe93540ffbf58be6b57e5ea5e71ba3fc5c030 /benchtests/bench-memcpy.c | |
parent | 3e5760fcb48528d48deeb60cb885a97bb731160c (diff) | |
download | glibc-b0969fa53a28b4ab2159806bf6c99a98999502ee.tar.gz glibc-b0969fa53a28b4ab2159806bf6c99a98999502ee.tar.xz glibc-b0969fa53a28b4ab2159806bf6c99a98999502ee.zip |
x86: Fix wcsnlen-avx2 page cross length comparison [BZ #29591]
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.
Diffstat (limited to 'benchtests/bench-memcpy.c')
0 files changed, 0 insertions, 0 deletions