From b39c6706458c006734d1a02c1a180b00d88182a5 Mon Sep 17 00:00:00 2001 From: Zdenek Dvorak Date: Sun, 28 Jan 2007 18:29:30 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree-data-ref.c | 1 + 2 files changed, 6 insertions(+) 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 + + * 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 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; -- 2.7.4