Skip to content

Bysyncify: Fuzzing#2192

Merged
kripken merged 5 commits intomasterfrom
fuzz3
Jul 2, 2019
Merged

Bysyncify: Fuzzing#2192
kripken merged 5 commits intomasterfrom
fuzz3

Conversation

@kripken
Copy link
Copy Markdown
Member

@kripken kripken commented Jul 1, 2019

Gets fuzzing support for Bysyncify working.

  • Add the python to run the fuzzing on bysyncify.
  • Add a JS script to load and run a testcase with bysyncify support. The code has all the runtime support for sleep/resume etc., which it does on calls to imports at random in a deterministic manner.
  • Export memory from fuzzer so JS can access it.
  • Fix tiny builder bug with makeExport.

@kripken kripken requested review from sbc100 and tlively July 1, 2019 21:01
Copy link
Copy Markdown
Member

@sbc100 sbc100 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm (.. not that fully grok of this)

Comment thread src/wasm-builder.h
auto* export_ = new Export();
export_->name = name;
export_->value = value;
export_->kind = ExternalKind::Function;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bugfix seems like it would have a bigger effect.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think what happened is the code was copy-pasted from one place that did this (for functions). It wasn't used in another place til now...

@kripken kripken merged commit be3135c into master Jul 2, 2019
@kripken kripken deleted the fuzz3 branch July 2, 2019 00:45
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.

2 participants