From: Sven Verdoolaege Date: Sat, 26 Jun 2010 09:10:59 +0000 (+0200) Subject: isl_affine_hull.c: extend_affine_hull: avoid NULL pointer dereference X-Git-Tag: isl-0.03~34 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9046426e86b60872cad1c329b70ba5a06a9a7635;p=platform%2Fupstream%2Fisl.git isl_affine_hull.c: extend_affine_hull: avoid NULL pointer dereference --- diff --git a/isl_affine_hull.c b/isl_affine_hull.c index 7451fed..73a6590 100644 --- a/isl_affine_hull.c +++ b/isl_affine_hull.c @@ -403,6 +403,8 @@ static struct isl_basic_set *extend_affine_hull(struct isl_tab *tab, goto error; point = isl_basic_set_from_vec(sample); hull = affine_hull(hull, point); + if (!hull) + return NULL; } return hull;