Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WasmParser: Fix result type index parsing to use 33-bit signed leb128 #169

Merged
merged 2 commits into from
Jan 4, 2025

Conversation

kateinoigakukun
Copy link
Member

While reviewing the function-reference spec, I found blocktype should use s33 to encode function index but we interpreted it as raw u8.

The block type index is currently parsed as UInt8 raw byte but it should
be parsed as a signed 33-bit leb128 integer.
@kateinoigakukun kateinoigakukun merged commit 07293bf into main Jan 4, 2025
14 checks passed
@kateinoigakukun kateinoigakukun deleted the katei/fix-block-type-index branch January 4, 2025 06:56
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.

1 participant