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:
d32aba8
)
isl_map_convex_hull: avoid NULL pointer dereference
author
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 26 Jun 2010 10:14:56 +0000
(12:14 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 26 Jun 2010 15:37:40 +0000
(17:37 +0200)
isl_convex_hull.c
patch
|
blob
|
history
diff --git
a/isl_convex_hull.c
b/isl_convex_hull.c
index
f783671
..
ac79825
100644
(file)
--- a/
isl_convex_hull.c
+++ b/
isl_convex_hull.c
@@
-1893,6
+1893,8
@@
struct isl_basic_map *isl_map_convex_hull(struct isl_map *map)
map = isl_map_detect_equalities(map);
map = isl_map_align_divs(map);
+ if (!map)
+ goto error;
model = isl_basic_map_copy(map->p[0]);
set = isl_map_underlying_set(map);
if (!set)