Fix loader parse block type and calculate dynamic offset for loop args (#3482)
Fix several issues in wasm loader: - Parse a block's type index with leb int32 instead leb uint32 - Correct dst dynamic offset of loop block arguments for opcode br when copying the stack operands to the arguments of loop block - Free each frame_csp's param_frame_offsets when destroy loader ctx - Fix compilation error in wasm_mini_loader.c - Add test cases of failed issues This PR fixes issue #3467 and #3468.
This commit is contained in:
BIN
tests/regression/ba-issues/issues/issue-3467/tt_unreachable.wasm
Normal file
BIN
tests/regression/ba-issues/issues/issue-3467/tt_unreachable.wasm
Normal file
Binary file not shown.
BIN
tests/regression/ba-issues/issues/issue-3468/i64.add.wasm
Normal file
BIN
tests/regression/ba-issues/issues/issue-3468/i64.add.wasm
Normal file
Binary file not shown.
Reference in New Issue
Block a user