I've been growing a corpus for Miniscript parsing from Script, and merging it to the existing targets parsing a Script increased their coverage.
Some more Script seeds #79
pull darosior wants to merge 4 commits into bitcoin-core:main from darosior:more_script_seeds changing 1602 files +201 −0-
darosior commented at 10:55 AM on September 27, 2021: member
-
d1833a38c3
script: add 4 new seeds
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
-
4d60e6c2de
script_interpreter: add 2 new seeds
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
-
15048077e2
script_bitcoin_consensus: add tons of new seeds
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
-
950610bd72
script_ops: add 4 new seeds
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
-
maflcko commented at 4:09 PM on September 27, 2021: contributor
Nice. Do you have a link to the source code (fuzz target) you used to generate those?
-
darosior commented at 4:19 PM on September 27, 2021: member
To seed the corpus i used both multiple runs of https://github.com/sipa/miniscript/blob/5ce603f7817a814361ca673ac06882d2536c441b/bitcoin/test/miniscript_tests.cpp#L609-L639 by writing the output of
ToScriptand gathered few inputs from there https://github.com/jonasnick/bitcoinconsensus_testcases/tree/master/0.10-positive .For the fuzz target i'm still working on it but here is a sketch: https://github.com/darosior/bitcoin/tree/fuzz_target_preview
- maflcko merged this on Sep 28, 2021
- maflcko closed this on Sep 28, 2021
- darosior deleted the branch on Feb 15, 2022