projects
/
platform
/
upstream
/
isl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
isl_basic_set_opt: avoid invalid access on error path
[platform/upstream/isl.git]
/
isl_convex_hull.c
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);
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);
set = isl_map_underlying_set(map);