DaveGamble / cJSON

Ultralightweight JSON parser in ANSI C
MIT License
10.68k stars 3.21k forks source link

fuzzing: add two new fuzzers to OSS-Fuzz setup #799

Open DavidKorczynski opened 10 months ago

DavidKorczynski commented 10 months ago

Adds two fuzzers to increase code coverage for OSS-Fuzz. From local runs, these fuzzers increase the coverage from ~44% to 73%+

The fuzzers rely on FuzzedDataProvider to create data seeded with fuzz data, which means they are CPP files.

For reference, I implemented these fuzzers as part of an instructional video on how to develop fuzzing harnesses link.