mirror of
https://github.com/monero-project/monero.git
synced 2025-08-03 08:06:09 -04:00
Add fuzz testing using american fuzzy lop
Existing tests: block, transaction, signature, cold outputs, cold transaction. Data for these is in tests/data/fuzz. A convenience shell script is in contrib/fuzz_testing/fuzz.sh, eg: contrib/fuzz_testing/fuzz.sh signature The fuzzer will run indefinitely, ^C to stop. Fuzzing is currently supported for GCC only. I can't get CLANG to build Monero here as it dies on some system headers, so if someone wants to make it work on both, that'd be great. In particular, the __AFL_LOOP construct should be made to work so that a given run can fuzz multiple inputs, as the C++ load time is substantial.
This commit is contained in:
parent
ae8841f2ab
commit
841231e5bd
20 changed files with 710 additions and 0 deletions
BIN
tests/data/fuzz/block/BLOCK1
Normal file
BIN
tests/data/fuzz/block/BLOCK1
Normal file
Binary file not shown.
BIN
tests/data/fuzz/block/BLOCK2
Normal file
BIN
tests/data/fuzz/block/BLOCK2
Normal file
Binary file not shown.
BIN
tests/data/fuzz/cold-outputs/OUTPUTS1
Normal file
BIN
tests/data/fuzz/cold-outputs/OUTPUTS1
Normal file
Binary file not shown.
BIN
tests/data/fuzz/cold-outputs/OUTPUTS2
Normal file
BIN
tests/data/fuzz/cold-outputs/OUTPUTS2
Normal file
Binary file not shown.
BIN
tests/data/fuzz/cold-transaction/CTX1
Normal file
BIN
tests/data/fuzz/cold-transaction/CTX1
Normal file
Binary file not shown.
0
tests/data/fuzz/signature/SIG1
Normal file
0
tests/data/fuzz/signature/SIG1
Normal file
1
tests/data/fuzz/signature/SIG2
Normal file
1
tests/data/fuzz/signature/SIG2
Normal file
|
@ -0,0 +1 @@
|
|||
SigV1WbMcLkLKXz3Su9iFUp9aYF5vSfpVetcytVWAgqhn3KNe1kidn7M2KfTRpuK8G1ba1w2u5mbyoWbkLPy2Gm97BM4W
|
BIN
tests/data/fuzz/transaction/TX1
Normal file
BIN
tests/data/fuzz/transaction/TX1
Normal file
Binary file not shown.
BIN
tests/data/fuzz/transaction/TX2
Normal file
BIN
tests/data/fuzz/transaction/TX2
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue