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:
ImMike
2026-05-12 14:58:03 -04:00
parent 10ca73c02c
commit 0065f354a7

View File

@@ -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