Page MenuHomePhabricator

fuzz: Script validation flags
ClosedPublic

Authored by Fabien on Dec 4 2019, 15:27.

Details

Summary

Add a fuzzer test for the validation flags.

Completes backport of core PR15399 (commit fab15ff):
https://github.com/bitcoin/bitcoin/pull/15399/commits/fab15ff70e8db26942db83a9aab7ebf974e8b6b2

Depends on D4628.

Test Plan
./test/fuzz/test_runner.py -l DEBUG <path_to_your_corpus> script_flags

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

src/test/fuzz/CMakeLists.txt
15 ↗(On Diff #14612)

I'm fairly confident this isn't the ay it supposed to be done. I'm somewhat surprised that that works at all :)

I think you are making this more complex that it needs to be by only setting the flag on some specific files.

65 ↗(On Diff #14612)

Is that important that the target has this very specific name? Because if not, then simplify.

src/test/fuzz/CMakeLists.txt
65 ↗(On Diff #14612)

No it's not. It is only done that way for consistency with autotools and I'll be happy to clean it.
I'd better do it in another diff though, as it requires to update autotools as well (otherwise the fuzz/test_runner.py will be broken, as for now it parses the Makefile.test.include to build the list of fuzz tests).

Fabien planned changes to this revision.Dec 12 2019, 11:05

Rebase to address comment.

This revision is now accepted and ready to land.Mar 16 2020, 18:47
This revision was automatically updated to reflect the committed changes.