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:
c151ce2
)
isl_pw_qpolynomial_fold_bound: avoid access to freed memory
author
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 11 Dec 2010 18:56:50 +0000
(19:56 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 11 Dec 2010 18:56:50 +0000
(19:56 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_bound.c
patch
|
blob
|
history
diff --git
a/isl_bound.c
b/isl_bound.c
index
c67fcbf
..
9783604
100644
(file)
--- a/
isl_bound.c
+++ b/
isl_bound.c
@@
-233,10
+233,11
@@
__isl_give isl_pw_qpolynomial_fold *isl_pw_qpolynomial_fold_bound(
}
if (isl_pw_qpolynomial_fold_is_zero(pwf)) {
+ enum isl_fold type = pwf->type;
isl_pw_qpolynomial_fold_free(pwf);
if (tight)
*tight = 1;
- return isl_pw_qpolynomial_fold_zero(dim,
pwf->
type);
+ return isl_pw_qpolynomial_fold_zero(dim, type);
}
bound.pwf = isl_pw_qpolynomial_fold_zero(isl_dim_copy(dim), pwf->type);