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:
bd50ece
)
isl_input.c: obj_read: avoid NULL pointer dereference
author
Sven Verdoolaege
<skimo@kotnet.org>
Fri, 25 Jun 2010 18:17:41 +0000
(20:17 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 26 Jun 2010 15:37:39 +0000
(17:37 +0200)
isl_input.c
patch
|
blob
|
history
diff --git
a/isl_input.c
b/isl_input.c
index
b70b091
..
8747e56
100644
(file)
--- a/
isl_input.c
+++ b/
isl_input.c
@@
-1385,6
+1385,10
@@
static struct isl_obj obj_read(struct isl_stream *s, int nparam)
return obj;
}
v = vars_new(s->ctx);
+ if (!v) {
+ isl_stream_push_token(s, tok);
+ goto error;
+ }
bmap = isl_basic_map_alloc(s->ctx, 0, 0, 0, 0, 0, 0);
if (tok->type == '[') {
isl_stream_push_token(s, tok);