From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EAE033858C56; Thu, 18 Jan 2024 15:28:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EAE033858C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1705591687; bh=iZ86DnikafdrWxS01eQ3c+QsHI5stZhZhdkHsdLGo48=; h=From:To:Subject:Date:From; b=eDUuwU5mEtLxr/qwnRBZhOsYX+pCV4HiKwB5zxgd3NPEahXpfS00GHNqP2fvOfzAC 5VQ9Hzlg00e4UR5J9WrjTu9GphRHRUnHGSeI370/6SDw8nFvEyJtKGnWrQZ9IpI6ev wMblmXv/m6FSvFAOgv6QkdNq0QRskFsGQFQJoMZw= From: "adhemerval.zanella at linaro dot org" To: glibc-bugs@sourceware.org Subject: [Bug string/31266] New: sparc: string/tst-memmove-overflow fails on 32-bit sparcv9 Date: Thu, 18 Jan 2024 15:28:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: string X-Bugzilla-Version: 2.27 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: adhemerval.zanella at linaro dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31266 Bug ID: 31266 Summary: sparc: string/tst-memmove-overflow fails on 32-bit sparcv9 Product: glibc Version: 2.27 Status: NEW Severity: normal Priority: P2 Component: string Assignee: unassigned at sourceware dot org Reporter: adhemerval.zanella at linaro dot org Target Milestone: --- The sparcv9 uses the generic sparc64 sysdeps/sparc/sparc64/memmove.S implementation and the initial size test is done with a signed comparison: ENTRY(memmove) mov %o0, %g2 /* Save pointer to destination */ cmp %o1, %o0 /* if from address is >=3D to use forward c= opy=20 */ bgeu,a %XCC, 2f /* else use backward if ... */ cmp %o2, 17 /* delay slot, for small counts copy bytes = */ sub %o0, %o1, %o4 /* get difference of two addresses */ cmp %o2, %o4 /* compare size and difference of addresses= */ bgu %XCC, .Lovbc /* if size is bigger, have to do overlapped copy */ cmp %o2, 17 /* delay slot, for small counts copy bytes = */ /* * normal, copy forwards */ 2: ble %XCC, .Ldbytecp andcc %o1, 3, %o5 /* is src word aligned */ Where it should be a 'bleu' due the buffer length being a size_t. --=20 You are receiving this mail because: You are on the CC list for the bug.=