diff options
author | Sven Verdoolaege <skimo@kotnet.org> | 2010-06-26 12:42:17 +0200 |
---|---|---|
committer | Sven Verdoolaege <skimo@kotnet.org> | 2010-06-26 17:37:40 +0200 |
commit | 9b49bcea7742f6d32cfabe049ef1fc743ca829d6 (patch) | |
tree | 6862ecaae7864076d9e4245147da82dc50e19a21 /isl_tab.c | |
parent | 145532167c2346f876ab682a1e04109ecc1df4f3 (diff) | |
download | isl-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |