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:
0539995
)
isl_convex_hull.c: extend: check hull argument
author
Sven Verdoolaege
<skimo@kotnet.org>
Fri, 18 Dec 2009 19:53:46 +0000
(20:53 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Fri, 18 Dec 2009 19:53:46 +0000
(20:53 +0100)
isl_convex_hull.c
patch
|
blob
|
history
diff --git
a/isl_convex_hull.c
b/isl_convex_hull.c
index
b634353
..
297ae19
100644
(file)
--- a/
isl_convex_hull.c
+++ b/
isl_convex_hull.c
@@
-682,6
+682,9
@@
static struct isl_basic_set *extend(struct isl_basic_set *hull,
struct isl_basic_set *hull_facet = NULL;
unsigned dim;
struct isl_basic_set *hull_facet = NULL;
unsigned dim;
+ if (!hull)
+ return NULL;
+
isl_assert(set->ctx, set->n > 0, goto error);
dim = isl_set_n_dim(set);
isl_assert(set->ctx, set->n > 0, goto error);
dim = isl_set_n_dim(set);