projects
/
platform
/
upstream
/
isl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d091597
)
isl_map_gist_basic_map: avoid invalid access on error
author
Sven Verdoolaege
<skimo@kotnet.org>
Tue, 12 Mar 2013 13:56:12 +0000
(14:56 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Wed, 13 Mar 2013 07:56:52 +0000
(08:56 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_map_simplify.c
patch
|
blob
|
history
diff --git
a/isl_map_simplify.c
b/isl_map_simplify.c
index
c83888a
..
9057502
100644
(file)
--- a/
isl_map_simplify.c
+++ b/
isl_map_simplify.c
@@
-2182,6
+2182,8
@@
__isl_give isl_map *isl_map_gist_basic_map(__isl_take isl_map *map,
goto error;;
isl_assert(map->ctx, isl_space_is_equal(map->dim, context->dim), goto error);
map = isl_map_compute_divs(map);
+ if (!map)
+ goto error;
for (i = 0; i < map->n; ++i)
context = isl_basic_map_align_divs(context, map->p[i]);
for (i = map->n - 1; i >= 0; --i) {