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:
827222c
)
isl_vertices.c: compute_chambers: avoid invalid access on error path
author
Sven Verdoolaege
<skimo@kotnet.org>
Wed, 5 Jun 2013 07:53:47 +0000
(09:53 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Wed, 5 Jun 2013 07:53:47 +0000
(09:53 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_vertices.c
patch
|
blob
|
history
diff --git
a/isl_vertices.c
b/isl_vertices.c
index
efd534b
..
cd8f463
100644
(file)
--- a/
isl_vertices.c
+++ b/
isl_vertices.c
@@
-879,6
+879,8
@@
static __isl_give isl_vertices *compute_chambers(__isl_take isl_basic_set *bset,
bset = isl_basic_set_params(bset);
tab = isl_tab_from_basic_set(bset, 1);
+ if (!tab)
+ goto error;
for (i = 0; i < bset->n_ineq; ++i)
if (isl_tab_freeze_constraint(tab, i) < 0)
goto error;