isl_basic_set_scan: make sure sufficient rows are allocated in tableau
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 1 Mar 2010 13:24:52 +0000 (14:24 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 4 Mar 2010 14:35:45 +0000 (15:35 +0100)
isl_scan.c

index b0aba40..d893645 100644 (file)
@@ -91,6 +91,8 @@ int isl_basic_set_scan(struct isl_basic_set *bset,
        tab = isl_tab_from_basic_set(bset);
        if (!tab)
                goto error;
+       if (isl_tab_extend_cons(tab, dim + 1) < 0)
+               goto error;
 
        tab->basis = isl_mat_identity(bset->ctx, 1 + dim);
        if (1)