From 43cecedb497b7204971b4a6bac068cc05148649e Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Fri, 25 Jun 2010 17:18:06 +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 cf3cfbf..362c378 100644 --- a/isl_convex_hull.c +++ b/isl_convex_hull.c @@ -1901,6 +1901,8 @@ struct isl_basic_map *isl_map_convex_hull(struct isl_map *map) } convex_hull = isl_basic_map_overlying_set(bset, model); + if (!convex_hull) + return NULL; ISL_F_SET(convex_hull, ISL_BASIC_MAP_NO_IMPLICIT); ISL_F_SET(convex_hull, ISL_BASIC_MAP_ALL_EQUALITIES); -- 2.7.4