From a49ca3fe0516ba6b190f60cb6233989121b29955 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sat, 26 Jun 2010 12:14:56 +0200 Subject: [PATCH] isl_map_convex_hull: avoid NULL pointer dereference --- isl_convex_hull.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/isl_convex_hull.c b/isl_convex_hull.c index f783671f..ac798252 100644 --- 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) -- 2.11.4.GIT