fix some oss-fuzz (#1249)
* fix oss-fuzz 21012. * fix oss-fuzz 21741. * fix oss-fuzz 21743.
This commit is contained in:
@@ -550,6 +550,9 @@ static TCGArg *tcg_constant_folding(TCGContext *s, uint16_t *tcg_opc_ptr,
|
||||
reset_all_temps(s, nb_temps);
|
||||
|
||||
nb_ops = tcg_opc_ptr - s->gen_opc_buf;
|
||||
if (nb_ops > OPC_BUF_SIZE) {
|
||||
return NULL;
|
||||
}
|
||||
gen_args = args;
|
||||
for (op_index = 0; op_index < nb_ops; op_index++) {
|
||||
TCGOpcode op = s->gen_opc_buf[op_index];
|
||||
|
||||
Reference in New Issue
Block a user