bytecodealliance / wasm-micro-runtime

WebAssembly Micro Runtime (WAMR)
Apache License 2.0
4.84k stars 618 forks source link

wasm loader: Fix pop invalid offset count when stack top is ANY #3516

Closed wenyongh closed 3 months ago

wenyongh commented 3 months ago

In wasm_loader_pop_frame_offset, when the stack is in polymorphic state and the stack top operand is VALUE_TYPE_ANY, if we popping I64/F64 operand, we should pop one offset but not two offsets.

The issue was reported in #3513 and #3514.

TianlongLiang commented 3 months ago

LGTM