]> git.ipfire.org Git - thirdparty/glibc.git/commit
sparc: Fix sparc64 memmove length comparison (BZ 31266)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 18 Jan 2024 13:52:18 +0000 (10:52 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 2 Feb 2024 11:53:58 +0000 (08:53 -0300)
commitf4171ba5e5a772217ed0ebb80701fe1698407252
treea84a1210cd83072b6342e73fd211db3252f0c6e8
parentb233c4496445f4cfe343ed2d3079a427511a14c8
sparc: Fix sparc64 memmove length comparison (BZ 31266)

The small counts copy bytes comparsion should be unsigned (as the
memmove size argument).  It fixes string/tst-memmove-overflow on
sparcv9, where the input size triggers an invalid code path.

Checked on sparc64-linux-gnu and sparcv9-linux-gnu.

(cherry picked from commit 926a4bdbb5fc8955570208b5571b2d04c6ffbd1d)
sysdeps/sparc/sparc64/memmove.S