isl_affine_hull.c: extend_affine_hull: avoid NULL pointer dereference
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 26 Jun 2010 09:10:59 +0000 (11:10 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 26 Jun 2010 15:37:40 +0000 (17:37 +0200)
isl_affine_hull.c

index 7451fed..73a6590 100644 (file)
@@ -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;