Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add fuzzing by way of ClusterFuzzLite#49

Open
DavidKorczynski wants to merge 2 commits intop-ranav:masterfrom
DavidKorczynski:clusterfuzzlite
Open

Add fuzzing by way of ClusterFuzzLite#49
DavidKorczynski wants to merge 2 commits intop-ranav:masterfrom
DavidKorczynski:clusterfuzzlite

Conversation

@DavidKorczynski
Copy link

This adds fuzzing by way of ClusterFuzzLite, which is a GitHub action that will perform a short amount of fuzzing for new PRs. The goal is to use fuzzing to catch bugs that may be introduced by new PRs.

I added a fuzzer that targets iterating through rows and cells of a string seeded with fuzz data, and currently set the timeout of CFLite to 100 seconds. CFLite will flag if the fuzzer finds any issues in the code introduced by a PR.

To reproduce this set up the way ClusterFuzzLite does it (by way of OSS-Fuzz) you can do:

git clone https://github.com/google/oss-fuzz
git clone https://github.com/DavidKorczynski/csv2
cd csv2
git checkout clusterfuzzlite

# Build the fuzzers in .clusterfuzzlite
python3 ../oss-fuzz/infra/helper.py build_fuzzers --external $PWD

# Run the fuzzer for 10 seconds
python3 ../oss-fuzz/infra/helper.py run_fuzzer --external $PWD reader_fuzzer-- -max_total_time=10

Signed-off-by: David Korczynski <[email protected]>
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