mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
merge bitcoin#18739: Document how to fuzz Bitcoin Core using Honggfuzz
This commit is contained in:
parent
778f29b6bf
commit
5ed26b68c9
@ -133,3 +133,25 @@ $ afl/afl-fuzz -i inputs/ -o outputs/ -- src/test/fuzz/bech32
|
||||
```
|
||||
|
||||
Read the [`afl-fuzz` documentation](https://github.com/google/afl) for more information.
|
||||
|
||||
# Fuzzing Dash Core using Honggfuzz
|
||||
|
||||
## Quickstart guide
|
||||
|
||||
To quickly get started fuzzing Dash Core using [Honggfuzz](https://github.com/google/honggfuzz):
|
||||
|
||||
```sh
|
||||
$ git clone https://github.com/dashpay/dash
|
||||
$ cd dash/
|
||||
$ ./autogen.sh
|
||||
$ git clone https://github.com/google/honggfuzz
|
||||
$ cd honggfuzz/
|
||||
$ make
|
||||
$ cd ..
|
||||
$ CC=$(pwd)/honggfuzz/hfuzz_cc/hfuzz-clang CXX=$(pwd)/honggfuzz/hfuzz_cc/hfuzz-clang++ ./configure --enable-fuzz --with-sanitizers=address,undefined
|
||||
$ make
|
||||
$ mkdir -p inputs/
|
||||
$ honggfuzz/honggfuzz -i inputs/ -- src/test/fuzz/process_message
|
||||
```
|
||||
|
||||
Read the [Honggfuzz documentation](https://github.com/google/honggfuzz/blob/master/docs/USAGE.md) for more information.
|
||||
|
Loading…
Reference in New Issue
Block a user