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:
c4c89d2
)
isl_convex_hull.c: map_simple_hull: avoid invalid access on error
author
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 2 Dec 2012 12:11:01 +0000
(13:11 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 2 Dec 2012 12:11:01 +0000
(13:11 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_convex_hull.c
patch
|
blob
|
history
diff --git
a/isl_convex_hull.c
b/isl_convex_hull.c
index
3853fc1
..
dc8ac91
100644
(file)
--- a/
isl_convex_hull.c
+++ b/
isl_convex_hull.c
@@
-2342,7
+2342,7
@@
static __isl_give isl_basic_map *map_simple_hull(__isl_take isl_map *map,
map = isl_map_detect_equalities(map);
affine_hull = isl_map_affine_hull(isl_map_copy(map));
map = isl_map_align_divs(map);
- model =
isl_basic_map_copy(map->p[0])
;
+ model =
map ? isl_basic_map_copy(map->p[0]) : NULL
;
set = isl_map_underlying_set(map);