* [PATCH] Fix testcase for PR tree-optimization/32500
@ 2007-10-30 9:31 Volker Reichelt
2007-10-30 18:21 ` Janis Johnson
0 siblings, 1 reply; 2+ messages in thread
From: Volker Reichelt @ 2007-10-30 9:31 UTC (permalink / raw)
To: gcc-patches
Hi,
the submitter of PR32500 noted that the testcase that was added to the
testsuite is broken: It contains an out-of-bounds array access.
He suggested the trivial fix attached below.
Bootstrapped and regtested by me on i686-pc-linux-gnu.
Ok for mainline and 4.2 branch?
Regards,
Volker
:ADDPATCH tree-optimization:
2007-10-29 Ed Schouten <ed@fxq.nl>
PR tree-optimization/32500
* gcc.c-torture/execute/pr32500.c: Fix buffer overflow in testcase.
===========================================================================
--- gcc/gcc/testsuite/gcc.c-torture/execute/pr32500.c 2007-07-05 22:47:04 +0200
+++ gcc/gcc/testsuite/gcc.c-torture/execute/pr32500.c 2007-09-18 03:12:13 +0200
@@ -16,7 +16,7 @@ main(int argc, char *argv[])
for (i = 1; i <= 12; i++) {
if (i <= 4)
- foo(numbers[i]);
+ foo(numbers[i-1]);
else if (i >= 7 && i <= 9)
bar();
}
===========================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix testcase for PR tree-optimization/32500
2007-10-30 9:31 [PATCH] Fix testcase for PR tree-optimization/32500 Volker Reichelt
@ 2007-10-30 18:21 ` Janis Johnson
0 siblings, 0 replies; 2+ messages in thread
From: Janis Johnson @ 2007-10-30 18:21 UTC (permalink / raw)
To: Volker Reichelt; +Cc: gcc-patches
On Tue, 2007-10-30 at 08:24 +0100, Volker Reichelt wrote:
> Hi,
>
> the submitter of PR32500 noted that the testcase that was added to the
> testsuite is broken: It contains an out-of-bounds array access.
> He suggested the trivial fix attached below.
>
> Bootstrapped and regtested by me on i686-pc-linux-gnu.
> Ok for mainline and 4.2 branch?
OK.
Janis
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-30 17:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-30 9:31 [PATCH] Fix testcase for PR tree-optimization/32500 Volker Reichelt
2007-10-30 18:21 ` Janis Johnson
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).