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

Fuzzing: Add CIFuzz #239

Merged
merged 1 commit into from
Nov 25, 2021
Merged

Fuzzing: Add CIFuzz #239

merged 1 commit into from
Nov 25, 2021

Conversation

AdamKorcz
Copy link
Contributor

Description: What this PR does
Adds CIFuzz to jsonparsers OSS-fuzz integration. In short, CIFuzz is a service offered by OSS-fuzz to run jsonparsers fuzzers during the CI to prevent bugs from being introduced.
In this PR the fuzz time is set to 600 seconds but can be changed.

More about CIFuzz can be found here: https://google.github.io/oss-fuzz/getting-started/continuous-integration/

Benchmark before change:

Benchmark after change:

For running benchmarks use:

go test -test.benchmem -bench JsonParser ./benchmark/ -benchtime 5s -v
# OR
make bench (runs inside docker)

@buger buger merged commit a6f867e into buger:master Nov 25, 2021
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