Skip to content
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

updated fuzzing #664

Open
purpleidea opened this issue May 25, 2021 · 0 comments
Open

updated fuzzing #664

purpleidea opened this issue May 25, 2021 · 0 comments

Comments

@purpleidea
Copy link
Owner

When we get to newer versions of golang, we might want to update our fuzzing. The new format looks roughly like:

func FuzzParser(f *testing.F) {
   f.Fuzz(func(t *testing.T, data []byte) {
      original fuzz function body goes here
   })
}

Then
s/return/t.Skip()/
s/panic/t.Fatal/

finally
mv fuzz.go fuzz_test.go

and import "testing"

From notes taken from twitter. TBD for some future hacker to see if all this works with corpus, etc...

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

No branches or pull requests

1 participant