Skip to content

Commit bab81f7

Browse files
author
MarcoFalke
committed
Merge #18739: doc: Document how to fuzz Bitcoin Core using Honggfuzz
bb1ec36 doc: Document how to fuzz Bitcoin Core using honggfuzz (practicalswift) Pull request description: Document how to fuzz Bitcoin Core using Honggfuzz. ACKs for top commit: fanquake: ACK bb1ec36 - did a couple quick runs on a severely under powered VM. Tree-SHA512: 117944c52763a5672f988c62fecb01b85f19f3827fad5582a51464aefdaac4d9a9cd81e2118199f6ea1bb3ab0893c8459ca3d1df7f67bfcf215d5e305225f210
2 parents fd48e7a + bb1ec36 commit bab81f7

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

doc/fuzzing.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,25 @@ $ afl/afl-fuzz -i inputs/ -o outputs/ -- src/test/fuzz/bech32
133133
```
134134
135135
Read the [`afl-fuzz` documentation](https://github.com/google/afl) for more information.
136+
137+
# Fuzzing Bitcoin Core using Honggfuzz
138+
139+
## Quickstart guide
140+
141+
To quickly get started fuzzing Bitcoin Core using [Honggfuzz](https://github.com/google/honggfuzz):
142+
143+
```sh
144+
$ git clone https://github.com/bitcoin/bitcoin
145+
$ cd bitcoin/
146+
$ ./autogen.sh
147+
$ git clone https://github.com/google/honggfuzz
148+
$ cd honggfuzz/
149+
$ make
150+
$ cd ..
151+
$ CC=$(pwd)/honggfuzz/hfuzz_cc/hfuzz-clang CXX=$(pwd)/honggfuzz/hfuzz_cc/hfuzz-clang++ ./configure --enable-fuzz --with-sanitizers=address,undefined
152+
$ make
153+
$ mkdir -p inputs/
154+
$ honggfuzz/honggfuzz -i inputs/ -- src/test/fuzz/process_message
155+
```
156+
157+
Read the [Honggfuzz documentation](https://github.com/google/honggfuzz/blob/master/docs/USAGE.md) for more information.

0 commit comments

Comments
 (0)