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 18:05:33 -0800 |
commit | 5ac4f45c1b1afdf5ab9ca0d4c0915fd6980bdccd (patch) | |
tree | 375aed9c5487af156a4c1596146419122aedfb35 /sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c | |
parent | 114e3349de2ef48210c94ac39a54b0d6bd7ba2f3 (diff) | |
download | glibc-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 'sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c')
0 files changed, 0 insertions, 0 deletions