public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-10137] i386: Fix array index overflow in pr105354-2.c
@ 2024-04-26 9:05 Haochen Jiang
0 siblings, 0 replies; only message in thread
From: Haochen Jiang @ 2024-04-26 9:05 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:4a2e55b3ada20fe6457466bb687a66c8d03e056e
commit r14-10137-g4a2e55b3ada20fe6457466bb687a66c8d03e056e
Author: Haochen Jiang <haochen.jiang@intel.com>
Date: Fri Apr 26 16:48:29 2024 +0800
i386: Fix array index overflow in pr105354-2.c
The array index should not be over 8 for v8hi, or it will fail
under -O0 or using -fstack-protector.
gcc/testsuite/ChangeLog:
PR target/110621
* gcc.target/i386/pr105354-2.c: As mentioned.
Diff:
---
gcc/testsuite/gcc.target/i386/pr105354-2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.target/i386/pr105354-2.c b/gcc/testsuite/gcc.target/i386/pr105354-2.c
index b78b62e1e7e..1c592e84860 100644
--- a/gcc/testsuite/gcc.target/i386/pr105354-2.c
+++ b/gcc/testsuite/gcc.target/i386/pr105354-2.c
@@ -17,7 +17,7 @@ sse2_test (void)
b.a[i] = i + 16;
res_ab.a[i] = 0;
exp_ab.a[i] = -1;
- if (i <= 8)
+ if (i < 8)
{
c.a[i] = i;
d.a[i] = i + 8;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-04-26 9:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-26 9:05 [gcc r14-10137] i386: Fix array index overflow in pr105354-2.c Haochen Jiang
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).