cppcheck icon indicating copy to clipboard operation
cppcheck copied to clipboard

refs #12442 - generate a fuzzing corpus by extracting code from `testrunner`

Open firewave opened this issue 11 months ago • 4 comments

firewave avatar Jan 17 '25 16:01 firewave

I tried to do this via an option. It would be possible to pass this as an internal field via the Settings but it would be problematic to get that into all Settings objects in the tests.

firewave avatar Jan 17 '25 16:01 firewave

The idea is to have a corpus generated from all our test cases which will generate an artifact which can be pulled from the OSS-Fuzz integration to be used. This will give us a broad spectrum of code.

Some of the files are rather big though and I wonder if we should filter those out since they could provide misleading timeouts and too big inputs. But that could also be handled by specify the maximum input size via a fuzzing CLI parameter.

firewave avatar Jan 17 '25 16:01 firewave