diff options
author | Zdenek Dvorak <dvorakz@suse.cz> | 2007-01-28 18:29:30 +0100 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2007-01-28 17:29:30 +0000 |
commit | b39c6706458c006734d1a02c1a180b00d88182a5 (patch) | |
tree | 5584bc12f9475f3810931ad8f96a5763d6be8a78 /gcc | |
parent | 9891ec5f7d2ce04df2e49dafca8136a7d71c5fbe (diff) | |
download | gcc-b39c6706458c006734d1a02c1a180b00d88182a5.zip gcc-b39c6706458c006734d1a02c1a180b00d88182a5.tar.gz gcc-b39c6706458c006734d1a02c1a180b00d88182a5.tar.bz2 |
tree-data-ref.c (conflict_fn): Assert that the number of affine relations in the conflict function is valid.
* tree-data-ref.c (conflict_fn): Assert that the number of affine
relations in the conflict function is valid.
From-SVN: r121259
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-data-ref.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a2129d3..531f688 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-01-28 Zdenek Dvorak <dvorakz@suse.cz> + + * tree-data-ref.c (conflict_fn): Assert that the number of affine + relations in the conflict function is valid. + 2007-01-27 Ian Lance Taylor <iant@google.com> * common.opt: Add fstrict-overflow. diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c index d6201b6..794bb83 100644 --- a/gcc/tree-data-ref.c +++ b/gcc/tree-data-ref.c @@ -2418,6 +2418,7 @@ conflict_fn (unsigned n, ...) conflict_function *ret = XCNEW (conflict_function); va_list ap; + gcc_assert (0 < n && n <= MAX_DIM); va_start(ap, n); ret->n = n; |