This is an archive of the discontinued Mercurial Phabricator instance.

contrib: add some basic scaffolding for some fuzz test targets
ClosedPublic

Authored by durin42 on Jan 17 2018, 4:31 PM.

Details

Summary

I'd like to get the majority of our C code covered by automated fuzz
testing. I've started with bdiff because it was already decoupled from
libpython and therefore was fairly quick to produce a working
fuzzer. The code here is a little odd because I've been having trouble
convincing libfuzzer to define a main and I threw in the towel.

This code will also work with github.com/google/oss-fuzz, and once it
lands in our main repo I intend to enable automated fuzzing in
oss-fuzz with reports going to our security alias.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

durin42 created this revision.Jan 17 2018, 4:31 PM
indygreg accepted this revision.Jan 17 2018, 4:37 PM
indygreg added a subscriber: indygreg.

\o/

This revision is now accepted and ready to land.Jan 17 2018, 4:37 PM
This revision was automatically updated to reflect the committed changes.