fuzzbug fix

This commit is contained in:
Chris Fallin 2021-12-25 00:28:29 -08:00
parent a8b38e3abc
commit 648badb730

View file

@ -575,12 +575,16 @@ impl<'a, 'b> FunctionBodyBuilder<'a, 'b> {
wasmparser::Operator::LocalSet { local_index } => {
let (_, value) = self.op_stack.pop().unwrap();
self.locals.set(*local_index, value);
if self.cur_block.is_some() {
self.locals.set(*local_index, value);
}
}
wasmparser::Operator::LocalTee { local_index } => {
let (_ty, value) = *self.op_stack.last().unwrap();
self.locals.set(*local_index, value);
if self.cur_block.is_some() {
self.locals.set(*local_index, value);
}
}
wasmparser::Operator::Call { .. }