projects
/
platform
/
upstream
/
isl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71a483f
)
isl_equalities.c: parameter_compression_multi: avoid NULL pointer dereference
author
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 26 Jun 2010 09:45:44 +0000
(11:45 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 26 Jun 2010 15:37:40 +0000
(17:37 +0200)
isl_equalities.c
patch
|
blob
|
history
diff --git
a/isl_equalities.c
b/isl_equalities.c
index
0e1faa5
..
60c5e94
100644
(file)
--- a/
isl_equalities.c
+++ b/
isl_equalities.c
@@
-186,8
+186,12
@@
static struct isl_mat *parameter_compression_multi(
A = isl_mat_left_hermite(A, 0, NULL, NULL);
T = isl_mat_sub_alloc(A->ctx, A->row, 0, A->n_row, 0, A->n_row);
T = isl_mat_lin_to_aff(T);
+ if (!T)
+ goto error;
isl_int_set(T->row[0][0], D);
T = isl_mat_right_inverse(T);
+ if (!T)
+ goto error;
isl_assert(T->ctx, isl_int_is_one(T->row[0][0]), goto error);
T = isl_mat_transpose(T);
isl_mat_free(A);