Page MenuHomePhabricator

fuzz: add support for fuzzing under either Python 2 or 3

Authored by durin42 on Dec 9 2019, 10:21 PM.



This was more of a hairball than I hoped, but it appears to work. The hg-py3
branch of my oss-fuzz fork on github has the remaining changes to switch us to
Python 3, but we may as well retain Python 2 fuzzing support for at least a
little while.

Diff Detail

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

Event Timeline

durin42 created this revision.Dec 9 2019, 10:21 PM

Note: please review the embedded Python segments carefully, as it's a little fidgety to get right and verify I didn't do something Really Dumb.

pulkit accepted this revision.Dec 12 2019, 7:22 AM
This revision is now accepted and ready to land.Dec 12 2019, 7:22 AM
This revision was automatically updated to reflect the committed changes.