tools: add two fuzz harnesses to be consumed by OSS-Fuzz#1050
tools: add two fuzz harnesses to be consumed by OSS-Fuzz#1050DavidKorczynski wants to merge 1 commit into
Conversation
Adds two new fuzzing harness to increase code coverage. The latest coverage report shows 1347 lines covered: https://storage.googleapis.com/oss-fuzz-coverage/meshoptimizer/reports/20260429/linux/src/report.html Can confirm locally these changes get coverage to 4000+ lines. Signed-off-by: David Korczynski <david@adalogics.com>
|
I'm open in principle to expanding the fuzzing support here. I'm wondering if it would make sense to consolidate things a little further. Right now we have codecfuzz, simplifyfuzz & clusterfuzz; this would add two more, but optimizefuzz isn't actually scoped to just the optimization code (it calls generateTangents!). From the report above I assume OSS-Fuzz isn't currently using simplify/cluster fuzzing suites. I think it would perhaps be cleaner & better if most of these would be merged into a single source, like This would then make it easy to extend fuzzing support as new algorithms are added: instead of extra fuzzing suites that partially replicate the data generation, it could just be a matter of adding a few more calls to the "main" fuzzing driver, and OSS-Fuzz would presumably pick the changes up automatically. I would still keep codecfuzz as the only separate fuzzing suite; so with this proposal we'd have Open to feedback on the above. |
Adds two new fuzzing harness to increase code coverage. The latest coverage report shows 1347 lines covered:
https://storage.googleapis.com/oss-fuzz-coverage/meshoptimizer/reports/20260429/linux/src/report.html
Can confirm locally these changes get coverage to 4000+ lines.