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

Validate the input Wasm while constructing the ModuleInfo tree in the parse pass #16

Open
fitzgen opened this issue Apr 28, 2021 · 0 comments

Comments

@fitzgen
Copy link
Member

fitzgen commented Apr 28, 2021

Rather than fully parsing the wasm to validate it via wasmparser::Validator::validate_all and then full re-parsing the Wasm again inside the parse pass when constructing the ModuleInfo tree, we should use the lower-level wasmparser::Validator APIs to validate each parsed payload as we get it during the parse pass.

Also we should do the checking for table-manipulation instructions inside this single pass too.

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

No branches or pull requests

1 participant