Noah Goldstein 706c8a7f06 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 17:16:23 -08:00
..
2019-02-27 13:55:45 +00:00
2019-06-12 11:42:34 +01:00
2019-06-12 11:38:52 +01:00
2019-06-12 11:38:52 +01:00
2019-02-27 13:55:45 +00:00
2019-02-27 13:55:45 +00:00
2019-02-27 13:55:45 +00:00
2019-02-27 13:55:45 +00:00