-
Notifications
You must be signed in to change notification settings - Fork 856
New fuzzer mode: Fuzz against JavaScript #8655
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
Open
kripken
wants to merge
58
commits into
WebAssembly:main
Choose a base branch
from
kripken:fuzz.against.js
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
91c30a0
start
kripken 65c2a31
work
kripken d08c29f
work
kripken f3a07c8
work
kripken 823c665
work
kripken 767c8b4
work
kripken c7d7f1b
work
kripken fc981c7
work
kripken ebb1106
work
kripken fa2da6e
work
kripken 2c3c192
help
kripken 53b1438
work
kripken 255250d
work
kripken 169f4c8
work
kripken 2fe14e0
work
kripken 300c953
work
kripken 39f57ee
work
kripken cffacbc
work
kripken 41cd320
work
kripken 063b415
work
kripken 12d35ef
work
kripken e5d4ea5
work
kripken d968315
work
kripken 45ce1dc
work
kripken c1fccda
work
kripken a7b5bfd
work
kripken 35c498f
work
kripken 98e7b09
clean
kripken 26d3f3e
go
kripken c0c6dae
Merge remote-tracking branch 'origin/main' into fuzz.against.js
kripken 90c18af
cleanup
kripken f3d11a6
cleanup
kripken 44fe786
fix
kripken 79e65d7
fix
kripken 98bd0ac
go
kripken 4179d31
fix lint
kripken 2e2d028
lint
kripken a7bf270
Merge remote-tracking branch 'origin/main' into fuzz.against.js
kripken 1f7e875
fix
kripken 06357e5
least restrictions when unreachable
kripken a079f2e
wrapper TODO
kripken a7b5125
avoid typos in comments
kripken 149f300
typo
kripken 130029f
Refactor
kripken ca52c2d
linkt
kripken c59b29b
Merge remote-tracking branch 'origin/main' into fuzz.against.js
kripken ada1591
use interestingHeapSubTypes for bottom types
kripken 3ddc4fe
refine unreachable code to the bottom
kripken cd47cb6
save a bit
kripken 59b11d3
merge
kripken 1b857b1
Merge remote-tracking branch 'origin/main' into fuzz.against.js
kripken ebe62e9
Merge remote-tracking branch 'origin/main' into fuzz.against.js
kripken 2f67d1d
refactor to localize LUB-handling code, leaving the main maybeRefine(…
kripken 239ee45
simplify
kripken 7a545b0
format
kripken b94e9f7
handle no params/results
kripken 4c24184
actually handle no params/results
kripken 81e6fa8
fix
kripken File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| (module | ||
| ;; Two structs, A and B, each of which has a subtype. | ||
| (rec | ||
| (type $A (sub (struct))) | ||
| (type $A2 (sub $A (struct))) | ||
|
|
||
| (type $B (sub (struct))) | ||
| (type $B2 (sub $B(struct))) | ||
| ) | ||
|
|
||
| ;; Two imports, one which will be referenced. | ||
| (import "module" "base" (func $import (param i32 anyref) (result eqref))) | ||
| (import "module" "base" (func $import-reffed (param i32 anyref) (result eqref))) | ||
|
|
||
| ;; Two exports, one which will be referenced. | ||
|
|
||
| (func $export (export "export") (param $0 i32) (param $1 anyref) (result eqref) | ||
| ;; Add the refs. | ||
| (drop | ||
| (ref.func $import-reffed) | ||
| ) | ||
| (drop | ||
| (ref.func $export-reffed) | ||
| ) | ||
|
|
||
| ;; Call the imports. | ||
| (drop | ||
| (call $import | ||
| (i32.const 10) | ||
| ;; Send $A. We can refine the anyref to $A or $A2 (but not $B or $B2). | ||
| (struct.new $A) | ||
| ) | ||
| ) | ||
| (drop | ||
| (call $import-reffed | ||
| (i32.const 20) | ||
| (struct.new $A) | ||
| ) | ||
| ) | ||
|
|
||
| ;; Return $B. We can refine the eqref to $B or $B2 (but not $A or $A2). | ||
| (struct.new $B) | ||
| ) | ||
|
|
||
| (func $export-reffed (export "export-reffed") (param $0 i32) (param $1 anyref) (result eqref) | ||
| (struct.new $A) | ||
| ) | ||
| ) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might as well check these conditions before burning a bit to generate a new exactness above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bump.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, saved that bit.