From 0065f354a7e9435fbc64f2bdc7b2b695df90cf4c Mon Sep 17 00:00:00 2001 From: ImMike Date: Tue, 12 May 2026 14:58:03 -0400 Subject: [PATCH] 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. --- doc/fuzzing.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/fuzzing.md b/doc/fuzzing.md index 4b108862cd9..253f3f12ea2 100644 --- a/doc/fuzzing.md +++ b/doc/fuzzing.md @@ -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