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:
b55219c
)
isl_convex_hull.c: isl_basic_set_add_equality: avoid NULL pointer dereference
author
Sven Verdoolaege
<skimo@kotnet.org>
Fri, 25 Jun 2010 15:12:42 +0000
(17:12 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 26 Jun 2010 15:37:38 +0000
(17:37 +0200)
isl_convex_hull.c
patch
|
blob
|
history
diff --git
a/isl_convex_hull.c
b/isl_convex_hull.c
index
4a82e6a
..
cf3cfbf
100644
(file)
--- a/
isl_convex_hull.c
+++ b/
isl_convex_hull.c
@@
-213,6
+213,9
@@
static struct isl_basic_set *isl_basic_set_add_equality(
int i;
unsigned dim;
+ if (!bset)
+ return NULL;
+
if (ISL_F_ISSET(bset, ISL_BASIC_SET_EMPTY))
return bset;