Skip to content

Conversation

@funera1
Copy link
Contributor

@funera1 funera1 commented Oct 2, 2023

Fixed a bug in the processing of the br_table_cache opcode that caused out-of-range references when the label index was greater than the length of the label.

The WebAssembly Specification dictates that when executing the br_table instruction, if the label index exceeds the length of the label, it should be assigned the length of the label.
https://webassembly.github.io/spec/core/exec/instructions.html#xref-syntax-instructions-syntax-instr-control-mathsf-br-table-l-ast-l-n

@wenyongh wenyongh merged commit 64baf54 into bytecodealliance:main Oct 3, 2023
vickiegpt pushed a commit to vickiegpt/wamr-aot-gc-checkpoint-restore that referenced this pull request May 27, 2024
…ealliance#2615)

Fixed a bug in the processing of the br_table_cache opcode that caused out-of-range
references when the label index was greater than the length of the label.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants