mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
spirv: Properly size the src[] array.
Operations like nir_op_bitfield_insert have four arguments, and Coverity isn't privy to the fact that 4-argument operations aren't possible here, so it thinks this can lead to memory corruption. Just increase the size of the array to quell any fears.
This commit is contained in:
parent
0a548eb56f
commit
b1e6d069da
1 changed files with 1 additions and 1 deletions
|
|
@ -1036,7 +1036,7 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
|
|||
unsigned bit_size =
|
||||
glsl_get_bit_size(val->const_type);
|
||||
|
||||
nir_const_value src[3];
|
||||
nir_const_value src[4];
|
||||
assert(count <= 7);
|
||||
for (unsigned i = 0; i < count - 4; i++) {
|
||||
nir_constant *c =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue