]> git.ipfire.org Git - thirdparty/glibc.git/commit
x86: Fix __wcsncmp_evex in strcmp-evex.S [BZ# 28755]
authorNoah Goldstein <goldstein.w.n@gmail.com>
Sun, 9 Jan 2022 22:02:28 +0000 (16:02 -0600)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 26 Jan 2022 22:04:01 +0000 (14:04 -0800)
commit08beb3a3f4f46e306fffe184a08c5664bf0e13d6
treec72d1d250f7cd51d814862c21d05e82c9c58e675
parentb50d5b746cc0af5ad52164dcb0d3628f08b05a0d
x86: Fix __wcsncmp_evex in strcmp-evex.S [BZ# 28755]

Fixes [BZ# 28755] for wcsncmp by redirecting length >= 2^56 to
__wcscmp_evex. For x86_64 this covers the entire address range so any
length larger could not possibly be used to bound `s1` or `s2`.

test-strcmp, test-strncmp, test-wcscmp, and test-wcsncmp all pass.

Signed-off-by: Noah Goldstein <goldstein.w.n@gmail.com>
(cherry picked from commit 7e08db3359c86c94918feb33a1182cd0ff3bb10b)
sysdeps/x86_64/multiarch/strcmp-evex.S