-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Validate the effective type size of modules (#215)
* Validate the effective type size of modules This commit implements a fix for #214 where the effective size of the type of any item in a module (or a module itself) is now required to be bounded. The goal here is to accept reasonable modules but at the same time protecting implementations like wasmtime from having to worry about deeply recursive and nested module types. The general fix here is to account for the size of all types as we parse them, and at all times the size is bounded. Additionally wasm-smith is updated with similar accounting for the size of types and such to prevent generating modules with massively recursive types. Closes #214 * Clarify doc comments
- Loading branch information
1 parent
2e0a81d
commit 6bb6c24
Showing
5 changed files
with
251 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.