OSDN Git Service

* tree-data-ref.c (conflict_fn): Assert that the number of affine
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 28 Jan 2007 17:29:30 +0000 (17:29 +0000)
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 28 Jan 2007 17:29:30 +0000 (17:29 +0000)
relations in the conflict function is valid.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121259 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-data-ref.c

index a2129d3..531f688 100644 (file)
@@ -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.
index d6201b6..794bb83 100644 (file)
@@ -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;