Skip to content

Check for end of input while reading expressions#8092

Merged
kripken merged 1 commit into
WebAssembly:mainfrom
kripken:more2
Dec 9, 2025
Merged

Check for end of input while reading expressions#8092
kripken merged 1 commit into
WebAssembly:mainfrom
kripken:more2

Conversation

@kripken
Copy link
Copy Markdown
Member

@kripken kripken commented Dec 4, 2025

If the input ends in an expression, we are missing at minimum the end
of the function, so it is definitely invalid.

Fixes #8089

@kripken kripken requested a review from aheejin December 4, 2025 17:06
Comment thread src/wasm/wasm-binary.cpp
@kripken kripken merged commit 4f52bff into WebAssembly:main Dec 9, 2025
17 checks passed
@kripken kripken deleted the more2 branch December 9, 2025 22:49
kripken added a commit to kripken/binaryen that referenced this pull request Dec 10, 2025
If the input ends in an expression, we are missing at minimum the end
of the function, so it is definitely invalid.

Fixes WebAssembly#8089
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.

[Bug] Heap Buffer Overflow in WasmBinaryReader::readExpression

2 participants