@@ -12,7 +12,7 @@ $ CC=clang CXX=clang++ ./configure --enable-fuzz --with-sanitizers=address,fuzze
12
12
# macOS users: If you have problem with this step then make sure to read "macOS hints for
13
13
# libFuzzer" on https://github.com/bitcoin/bitcoin/blob/master/doc/fuzzing.md#macos-hints-for-libfuzzer
14
14
$ make
15
- $ src/test/fuzz/process_message
15
+ $ FUZZ=process_message src/test/fuzz/fuzz
16
16
# abort fuzzing using ctrl-c
17
17
```
18
18
@@ -26,7 +26,7 @@ If you specify a corpus directory then any new coverage increasing inputs will b
26
26
27
27
``` sh
28
28
$ mkdir -p process_message-seeded-from-thin-air/
29
- $ src/test/fuzz/process_message process_message-seeded-from-thin-air/
29
+ $ FUZZ=process_message src/test/fuzz/fuzz process_message-seeded-from-thin-air/
30
30
INFO: Seed: 840522292
31
31
INFO: Loaded 1 modules (424174 inline 8-bit counters): 424174 [0x55e121ef9ab8, 0x55e121f613a6),
32
32
INFO: Loaded 1 PC tables (424174 PCs): 424174 [0x55e121f613a8,0x55e1225da288),
@@ -70,7 +70,7 @@ To fuzz `process_message` using the [`bitcoin-core/qa-assets`](https://github.co
70
70
71
71
```sh
72
72
$ git clone https://github.com/bitcoin-core/qa-assets
73
- $ src/test/fuzz/process_message qa-assets/fuzz_seed_corpus/process_message/
73
+ $ FUZZ=process_message src/test/fuzz/fuzz qa-assets/fuzz_seed_corpus/process_message/
74
74
INFO: Seed: 1346407872
75
75
INFO: Loaded 1 modules (424174 inline 8-bit counters): 424174 [0x55d8a9004ab8, 0x55d8a906c3a6),
76
76
INFO: Loaded 1 PC tables (424174 PCs): 424174 [0x55d8a906c3a8,0x55d8a96e5288),
@@ -129,7 +129,7 @@ $ make
129
129
# try compiling using: AFL_NO_X86=1 make
130
130
$ mkdir -p inputs/ outputs/
131
131
$ echo A > inputs/thin-air-input
132
- $ afl/afl-fuzz -i inputs/ -o outputs/ -- src/test/fuzz/bech32
132
+ $ FUZZ=bech32 afl/afl-fuzz -i inputs/ -o outputs/ -- src/test/fuzz/fuzz
133
133
# You may have to change a few kernel parameters to test optimally - afl-fuzz
134
134
# will print an error and suggestion if so.
135
135
` ` `
@@ -153,7 +153,7 @@ $ cd ..
153
153
$ CC=$( pwd) /honggfuzz/hfuzz_cc/hfuzz-clang CXX=$( pwd) /honggfuzz/hfuzz_cc/hfuzz-clang++ ./configure --enable-fuzz --with-sanitizers=address,undefined
154
154
$ make
155
155
$ mkdir -p inputs/
156
- $ honggfuzz/honggfuzz -i inputs/ -- src/test/fuzz/process_message
156
+ $ FUZZ=process_message honggfuzz/honggfuzz -i inputs/ -- src/test/fuzz/fuzz
157
157
` ` `
158
158
159
159
Read the [Honggfuzz documentation](https://github.com/google/honggfuzz/blob/master/docs/USAGE.md) for more information.
0 commit comments