-
Notifications
You must be signed in to change notification settings - Fork 829
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
'wasmer run' crashes when the .wasm file has no functions #558
Labels
Comments
nlewycky
added a commit
that referenced
this issue
Jul 14, 2019
…te". Used to discover issue #558. We'll probably want to reconsider the default .gitignore of the artifacts and corpus directories. The fuzzer wastes a lot of time not having even a single exampel of a valid .wasm file to start with.
bors bot
added a commit
that referenced
this issue
Jul 14, 2019
559: Initial commit of a fuzzer. Run with "cargo fuzz run simple_instantiate". r=nlewycky a=nlewycky Used to discover issue #558. We'll probably want to reconsider the default .gitignore of the artifacts and corpus directories. The fuzzer wastes a lot of time not having even a single exampel of a valid .wasm file to start with. Co-authored-by: Nick Lewycky <[email protected]> Co-authored-by: nlewycky <[email protected]>
TODO: add fuzzer-trophy tag Don't know when the bug was fixed but it's not present in master branch anymore:
|
@pventuzelo This was fixed here: #586 I've added |
Ok perfect, issue can be close i think ;) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Thanks for the bug report!
Describe the bug
CraneliftModuleCodeGenerator::signatures is an Option<> type. This type is only filled in when feed_signatures is called. If the module has no functions, feed_signatures is never called. Then, in finalize we have this code:
which is attempting to unwrap a None.
Steps to reproduce
The error is
with a stack trace of:
The text was updated successfully, but these errors were encountered: