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:
f0fd42f
)
isl_vec_dup: avoid invalid accesses on error
author
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 2 Dec 2012 10:00:22 +0000
(11:00 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 2 Dec 2012 11:23:44 +0000
(12:23 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_vec.c
patch
|
blob
|
history
diff --git
a/isl_vec.c
b/isl_vec.c
index
a27fcba
..
ce17449
100644
(file)
--- a/
isl_vec.c
+++ b/
isl_vec.c
@@
-136,6
+136,8
@@
struct isl_vec *isl_vec_dup(struct isl_vec *vec)
if (!vec)
return NULL;
vec2 = isl_vec_alloc(vec->ctx, vec->size);
+ if (!vec2)
+ return NULL;
isl_seq_cpy(vec2->el, vec->el, vec->size);
return vec2;
}