From 71a483fc7a74061faefb9726e32ea89a557860f8 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sat, 26 Jun 2010 11:41:56 +0200 Subject: [PATCH] isl_basic_map_project_out: avoid NULL pointer dereference --- isl_map.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/isl_map.c b/isl_map.c index 9d532cd2..ba05d126 100644 --- a/isl_map.c +++ b/isl_map.c @@ -2396,6 +2396,8 @@ __isl_give isl_basic_map *isl_basic_map_project_out( bmap = move_last(bmap, type, first, n); bmap = isl_basic_map_cow(bmap); + if (!bmap) + return NULL; row_size = 1 + isl_dim_total(bmap->dim) + bmap->extra; old = bmap->block2.data; -- 2.11.4.GIT