From 9b49bcea7742f6d32cfabe049ef1fc743ca829d6 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sat, 26 Jun 2010 12:42:17 +0200 Subject: [PATCH] isl_tab.c: tab_mat_product: avoid NULL pointer dereference --- isl_tab.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/isl_tab.c b/isl_tab.c index 5eafec4..54ed72b 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) { -- 2.7.4