test: add deterministic parser fuzzing
This commit is contained in:
1 parent
7756bd9f60
commit
52ccd3e001
5 files changed
+94
-1
No files matched your search
@@ -1496,6 +1496,22 @@ ASAN_OPTIONS=detect_leaks=1 build/asan/bin/vbs_core_tests --no-color
|
||||
recorded as tooling work (propagate sanitizer flags to descriptor compilation), not a code bug.
|
||||
- Normal build CTest after the fix: **8 / 8 passed** in 278.59 s.
|
||||
|
||||
## Deterministic Parser Fuzzing (GCC 16.2, pin `0002e74`)
|
||||
|
||||
```sh
|
||||
dev cpp-gcc -c build/pinned/bin/vbs_core_tests --filter fuzz_mutated_inputs_never_crash_parsers --no-color
|
||||
dev cpp-gcc -c cmake --build build/asan --parallel 8
|
||||
ASAN_OPTIONS=detect_leaks=1 UBSAN_OPTIONS=print_stacktrace=1 \
|
||||
dev cpp-gcc -c build/asan/bin/vbs_core_tests --filter fuzz_mutated_inputs_never_crash_parsers --no-color
|
||||
```
|
||||
|
||||
- 200 deterministic mutations (bit flips, truncation, overwrite runs, junk insertion) over TOML,
|
||||
JSON, lockfile and tar seeds fed to `load_dependencies_toml`, `Void::Json::Strict::parse`,
|
||||
`parse_lockfile`, and `extract_safe_tar`.
|
||||
- Normal build: **passed** (2.93 s). ASan+UBSan with leak detection: **passed** (3.05 s), no
|
||||
reports.
|
||||
- Seed sanity assertions ensure the unmutated inputs still parse.
|
||||
|
||||
## 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).
|
||||
|
||||
Reference in new issue
Block a user