Page MenuHomePhabricator

[test] Speed up fuzzing by ~200x when using afl-fuzz
ClosedPublic

Authored by Fabien on Nov 29 2019, 13:21.

Details

Summary
Enable the `afl-clang-fast++` features deferred forkserver
(`__AFL_INIT`) and persistent mode (`__AFL_LOOP(1000)`).

Backport of core PR10415:
https://github.com/bitcoin/bitcoin/pull/10415/files

Test Plan

Follow the fuzzing.md to run the fuzzer.
Check that the performance are improved by using afl-clang-fast.
My numbers:

  • Before: ~60/s
  • After: ~7300/s

Diff Detail

Repository
rABC Bitcoin ABC
Branch
PR10415
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 8330
Build 14679: Default Diff Build & Tests
Build 14678: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Nov 29 2019, 14:06