mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
st_glsl_to_tgsi: don't read potentially uninitialized buffer variable
Found by -fsanitize=undefined. Note that this should be a harmless issue in practice because the inst->op check always dominates anyway. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
6510e07345
commit
494e4b8976
1 changed files with 1 additions and 1 deletions
|
|
@ -3334,7 +3334,7 @@ glsl_to_tgsi_visitor::visit_ssbo_intrinsic(ir_call *ir)
|
|||
inst = (glsl_to_tgsi_instruction *)inst->get_prev();
|
||||
if (inst->op == TGSI_OPCODE_UADD)
|
||||
inst = (glsl_to_tgsi_instruction *)inst->get_prev();
|
||||
} while (inst && inst->buffer.file == PROGRAM_UNDEFINED && inst->op == op);
|
||||
} while (inst && inst->op == op && inst->buffer.file == PROGRAM_UNDEFINED);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue