projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11b7c4b
)
gallivm: added some vector length sanity checks
author
Brian Paul
<brianp@vmware.com>
Fri, 14 May 2010 19:23:10 +0000
(13:23 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 14 May 2010 19:23:41 +0000
(13:23 -0600)
src/gallium/auxiliary/gallivm/lp_bld_type.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_type.c
b/src/gallium/auxiliary/gallivm/lp_bld_type.c
index 70ac755bbb1b6c9fe4a7782e4d23fc2a0a04c462..e6cd400c43f99a25266c1a8e02af04eaa6026304 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_type.c
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_type.c
@@
-195,6
+195,7
@@
lp_uint_type(struct lp_type type)
{
struct lp_type res_type;
+ assert(type.length <= LP_MAX_VECTOR_LENGTH);
memset(&res_type, 0, sizeof res_type);
res_type.width = type.width;
res_type.length = type.length;
@@
-211,6
+212,7
@@
lp_int_type(struct lp_type type)
{
struct lp_type res_type;
+ assert(type.length <= LP_MAX_VECTOR_LENGTH);
memset(&res_type, 0, sizeof res_type);
res_type.width = type.width;
res_type.length = type.length;