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:
a313e54
)
isl_tab_pip.c: sol_pop: avoid invalid access on error
author
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 2 Dec 2012 13:17:31 +0000
(14:17 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 2 Dec 2012 13:17:31 +0000
(14:17 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_tab_pip.c
patch
|
blob
|
history
diff --git
a/isl_tab_pip.c
b/isl_tab_pip.c
index
bf5810e
..
f69bae3
100644
(file)
--- a/
isl_tab_pip.c
+++ b/
isl_tab_pip.c
@@
-309,6
+309,8
@@
static void sol_pop(struct isl_sol *sol)
struct isl_basic_set *bset;
bset = sol_domain(sol);
+ if (!bset)
+ goto error;
isl_basic_set_free(partial->next->dom);
partial->next->dom = bset;
@@
-321,6
+323,9
@@
static void sol_pop(struct isl_sol *sol)
}
} else
sol_pop_one(sol);
+
+ if (0)
+error: sol->error = 1;
}
static void sol_dec_level(struct isl_sol *sol)