public inbox for
help / color / mirror / Atom feed
From: Adhemerval Zanella <>
Subject: [glibc] sparc: Fix sparc64 memmove length comparison (BZ 31266)
Date: Mon, 22 Jan 2024 13:01:20 +0000 (GMT)	[thread overview]
Message-ID: <> (raw);h=926a4bdbb5fc8955570208b5571b2d04c6ffbd1d

commit 926a4bdbb5fc8955570208b5571b2d04c6ffbd1d
Author: Adhemerval Zanella <>
Date:   Thu Jan 18 10:52:18 2024 -0300

    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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysdeps/sparc/sparc64/memmove.S b/sysdeps/sparc/sparc64/memmove.S
index 8803a03d4e..f14b09afaf 100644
--- a/sysdeps/sparc/sparc64/memmove.S
+++ b/sysdeps/sparc/sparc64/memmove.S
@@ -38,7 +38,7 @@ ENTRY(memmove)
  * normal, copy forwards
-2:	ble	%XCC, .Ldbytecp
+2:	bleu	%XCC, .Ldbytecp
 	 andcc	%o1, 3, %o5	/* is src word aligned  */
 	bz,pn	%icc, .Laldst
 	 cmp	%o5, 2		/* is src half-word aligned  */

                 reply	other threads:[~2024-01-22 13:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).