test(fuzz): add a Clang/libFuzzer target for the header-only parsers
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 6s
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 8s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 16s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 48s

This commit is contained in:
faumaray committed 2026-12-05 10:59:16 +03:00
1 parent fd9e8673c0
commit c2b80416a5
9 files changed
+64 -1

No files matched your search

+14
View File
@@ -1662,6 +1662,20 @@ vbs ide plugin --project <proj> --build-dir <build> --editor vscode --output <di
Version, UpgradeCode, a `Source="bin/cli_hi"` File and the ComponentGroup (**passed**, 7.16 s).
- Full CTest: **8 / 8 passed** in 281.07 s.
## Coverage-Guided Fuzzing (Clang 23.1.5 + libFuzzer, pin `0002e74`)
```sh
VOID_INCLUDE_DIR=/tmp/opencode/vl-pin/include dev cpp -c bash fuzz/run.sh 30
```
- Built `fuzz/fuzz_parsers.cpp` with `clang++ -fsanitize=fuzzer,address,undefined` and ran for
30 s: **1,541,020 executions, no crashes or sanitizer reports**, and libFuzzer emitted a
recommended dictionary from the observed inputs.
- Targets: `Void::Json::Strict::parse`, `Void::Semver::parse_range`, `Void::Semver::parse_strict`
(all header-only). TOML, lockfile and tar remain in the deterministic mutation harness because
their implementations are not header-only.
- No repo build changed, so the last full CTest run (8/8, 281.07 s at `fd9e867`) remains valid.
## Limits and Unrun Checks
1. **HTTPS git fetch**: the host shell is proxy-restricted, but the Docker container could clone `https://git.faumaray.com/Void/VoidLibrary.git`; the pinned commit `3e254055e081a104f08df68dde39711bc7813518` was fetched directly for the verification above. A separate configure against the local `/home/faumaray/Projects/Library` checkout via `VBS_VOID_SOURCE_DIR` also succeeded (development-only override, checkout unmodified).