Skip to content

Fast pass fuzzing#1258

Merged
kripken merged 2 commits intomasterfrom
fuzz-passes
Nov 13, 2017
Merged

Fast pass fuzzing#1258
kripken merged 2 commits intomasterfrom
fuzz-passes

Conversation

@kripken
Copy link
Copy Markdown
Member

@kripken kripken commented Nov 1, 2017

Adds --fuzz-passes to wasm-opt, which makes it pick random passes to run on the random wasm it generates, and sees if they break anything. Before I used some python to pick the passes, but doing this in wasm-opt is a lot faster (like an order of magnitude in afl-fuzz).

Amusingly, when fuzzing with this the map density passes 70%, leading to this afl-fuzz warning:

The fuzzer will flag high percentages [of map density] in red.
Chances are, you will never see that unless you're fuzzing
extremely hairy software (say, v8, perl, ffmpeg).

So I guess we're in good company? ;)

@kripken
Copy link
Copy Markdown
Member Author

kripken commented Nov 13, 2017

This found a few issues so it seems useful, and looks like no concerns, merging.

@kripken kripken merged commit 7261008 into master Nov 13, 2017
@kripken kripken deleted the fuzz-passes branch November 13, 2017 19:29
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.

1 participant