sparc: Fix sparc64 memmove length comparison (BZ 31266)
commit926a4bdbb5fc8955570208b5571b2d04c6ffbd1d
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 18 Jan 2024 13:52:18 +0000 (18 10:52 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 22 Jan 2024 12:34:50 +0000 (22 09:34 -0300)
tree888d095618e17680113e9b696466ce44a7baca0a
parent369efd817780276dbe0ecf8be6e1f354bdbc9857
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.
sysdeps/sparc/sparc64/memmove.S