Noah Goldstein 5ac4f45c1b 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.

(cherry picked from commit b0969fa53a28b4ab2159806bf6c99a98999502ee)
2022-11-24 18:05:33 -08:00
..
2019-09-13 14:51:35 +01:00
2019-09-13 14:51:28 +01:00
2019-09-13 14:51:28 +01:00