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

Wasm testsuite malformations #14

Merged
merged 1 commit into from
Jun 1, 2024
Merged

Conversation

CharlieTap
Copy link
Owner

ensure reserved bytes are zero

ensure leb128 do not overflow

ensure max locals is 2^32-1

decode data count and use it to verify data segments size

catch multiple start functions

require data count when memory instructions are present

ensure sections are consumed

ensure sections match size declared

catch case where custom section is malformed

ensure name values are correctly encoded utf8

catch leb128 cases of poor encoding

ensure reserved bytes are zero

ensure leb128 do not overflow

ensure max locals is 2^32-1

decode data count and use it to verify data segments size

catch multiple start functions

require data count when memory instructions are present

ensure sections are consumed

ensure sections match size declared

catch case where custom section is malformed

ensure name values are correctly encoded utf8

catch leb128 cases of poor encoding
@CharlieTap CharlieTap merged commit 1e30ce6 into main Jun 1, 2024
3 checks passed
@CharlieTap CharlieTap deleted the wasm-testsuite-malformations branch June 1, 2024 09:58
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.

None yet

1 participant