mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-11 21:20:39 +02:00
doc: clarify libfuzzer-nosan preset uses build_fuzz_nosan dir
The fuzzing quickstart documents the libfuzzer preset with build_fuzz as the build directory, then mentions libfuzzer-nosan as an alternative without noting that this preset uses a different binary directory (build_fuzz_nosan, per CMakePresets.json line 54). A reader following the quickstart with --preset=libfuzzer-nosan and then running 'cmake --build build_fuzz' as shown will operate against the wrong (or empty) directory. Add a clarifying note at the first mention in the Quickstart.
This commit is contained in:
@@ -14,6 +14,8 @@ $ FUZZ=process_message build_fuzz/bin/fuzz
|
||||
```
|
||||
|
||||
One can use `--preset=libfuzzer-nosan` to do the same without common sanitizers enabled.
|
||||
Note that this preset uses a different build directory, so replace `build_fuzz` with
|
||||
`build_fuzz_nosan` in the build and run commands above.
|
||||
See [further](#run-without-sanitizers-for-increased-throughput) for more information.
|
||||
|
||||
There is also a runner script to execute all fuzz targets. Refer to
|
||||
|
||||
Reference in New Issue
Block a user