mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
gallivm: added some vector length sanity checks
This commit is contained in:
parent
11b7c4b1ac
commit
18ed479119
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue