Skip to content

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

Open

Description

@fitzgen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions