summaryrefslogtreecommitdiff
path: root/isl_tab.c
diff options
context:
space:
mode:
authorSven Verdoolaege <skimo@kotnet.org>2010-06-26 12:42:17 +0200
committerSven Verdoolaege <skimo@kotnet.org>2010-06-26 17:37:40 +0200
commit9b49bcea7742f6d32cfabe049ef1fc743ca829d6 (patch)
tree6862ecaae7864076d9e4245147da82dc50e19a21 /isl_tab.c
parent145532167c2346f876ab682a1e04109ecc1df4f3 (diff)
downloadisl-9b49bcea7742f6d32cfabe049ef1fc743ca829d6.tar.gz
isl-9b49bcea7742f6d32cfabe049ef1fc743ca829d6.tar.bz2
isl-9b49bcea7742f6d32cfabe049ef1fc743ca829d6.zip
isl_tab.c: tab_mat_product: avoid NULL pointer dereference
Diffstat (limited to 'isl_tab.c')
-rw-r--r--isl_tab.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/isl_tab.c b/isl_tab.c
index 5eafec45..54ed72ba 100644
--- a/isl_tab.c
+++ b/isl_tab.c
@@ -312,6 +312,8 @@ static struct isl_mat *tab_mat_product(struct isl_mat *mat1,
prod = isl_mat_alloc(mat1->ctx, mat1->n_row + mat2->n_row,
off + col1 + col2);
+ if (!prod)
+ return NULL;
n = 0;
for (i = 0; i < r1; ++i) {