isl_tab_allocate_con: add extra assertion
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 28 Sep 2009 13:00:39 +0000 (15:00 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 7 Oct 2009 20:03:07 +0000 (22:03 +0200)
isl_tab.c

index bd8476d..bf1166a 100644 (file)
--- a/isl_tab.c
+++ b/isl_tab.c
@@ -1098,6 +1098,7 @@ int isl_tab_allocate_con(struct isl_tab *tab)
        int r;
 
        isl_assert(tab->mat->ctx, tab->n_row < tab->mat->n_row, return -1);
+       isl_assert(tab->mat->ctx, tab->n_con < tab->max_con, return -1);
 
        r = tab->n_con;
        tab->con[r].index = tab->n_row;