From a86c75a60e1791a17c23625d466ccee8f9fdc08f Mon Sep 17 00:00:00 2001 From: rakdver Date: Sun, 28 Jan 2007 17:29:30 +0000 Subject: [PATCH] * tree-data-ref.c (conflict_fn): Assert that the number of affine 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 | 5 +++++ gcc/tree-data-ref.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a2129d3e34b2..531f6888e021 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-01-28 Zdenek Dvorak + + * 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 * common.opt: Add fstrict-overflow. diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c index d6201b6cf60d..794bb83f3a3d 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; -- 2.47.3