public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/64430] New: Out-of-bounds array access in isl-ast-gen-if-1.c
@ 2014-12-28 19:28 dinuxbg at gmail dot com
2015-09-01 4:48 ` [Bug testsuite/64430] " dinuxbg at gmail dot com
0 siblings, 1 reply; 2+ messages in thread
From: dinuxbg at gmail dot com @ 2014-12-28 19:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64430
Bug ID: 64430
Summary: Out-of-bounds array access in isl-ast-gen-if-1.c
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: testsuite
Assignee: unassigned at gcc dot gnu.org
Reporter: dinuxbg at gmail dot com
In gcc.dg/graphite/isl-ast-gen-if-1.c:13 the following line has out-of-bounds
array access:
a[n - i] = 1; //out-of-bounds when n=50 and i=0
Example fix:
--- a/gcc/testsuite/gcc.dg/graphite/isl-ast-gen-if-1.c
+++ b/gcc/testsuite/gcc.dg/graphite/isl-ast-gen-if-1.c
@@ -29,7 +29,7 @@ int
main (void)
{
int a[50];
- foo (a, 50);
+ foo (a, 49);
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug testsuite/64430] Out-of-bounds array access in isl-ast-gen-if-1.c
2014-12-28 19:28 [Bug testsuite/64430] New: Out-of-bounds array access in isl-ast-gen-if-1.c dinuxbg at gmail dot com
@ 2015-09-01 4:48 ` dinuxbg at gmail dot com
0 siblings, 0 replies; 2+ messages in thread
From: dinuxbg at gmail dot com @ 2015-09-01 4:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64430
Dimitar Dimitrov <dinuxbg at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Dimitar Dimitrov <dinuxbg at gmail dot com> ---
Fixed with:
* gcc.dg/graphite/isl-ast-gen-if.c (main): Increase size of a
array to allow a[50] to be a valid location.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-01 4:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-28 19:28 [Bug testsuite/64430] New: Out-of-bounds array access in isl-ast-gen-if-1.c dinuxbg at gmail dot com
2015-09-01 4:48 ` [Bug testsuite/64430] " dinuxbg at gmail dot com
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).