Harden and fully cover the C++ translation
Add an exhaustive readable-instance sweep and a coverage gate requiring 100% line coverage of the summarised implementation. Delete branches that are unreachable under `Readable`, centralise and assert the 32-bit offset contract at the public entry points, and stop materialising `n` zero bytes when deciding `keyAfterN n k < upper`. Also add the extreme-offset regression test, harden the corpus parsers, remove unused model helpers, document the literal-total / fast-readable split, and refresh the validation and benchmark numbers.
This commit is contained in:
1 parent
e32e42d933
commit
3bb5d062ff
15 files changed
+620
-196
No files matched your search
+6
-4
@@ -1,15 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
# Build (if needed) and run the differential and safety fuzzers.
|
||||
# Build and run the differential and safety fuzzers.
|
||||
set -euo pipefail
|
||||
|
||||
here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
build="${1:-$here/build}"
|
||||
seconds="${2:-300}"
|
||||
|
||||
if [[ ! -x "$build/fuzz_readable" ]]; then
|
||||
cmake -S "$here" -B "$build" -G Ninja -DCMAKE_CXX_COMPILER=clang++-21
|
||||
cmake --build "$build" --target fuzz_readable fuzz_raw
|
||||
# Configure once, then rebuild every run: the build is incremental, so this
|
||||
# cannot fuzz stale binaries after a source edit.
|
||||
if [[ ! -f "$build/CMakeCache.txt" ]]; then
|
||||
cmake -S "$here" -B "$build" -G Ninja -DCMAKE_CXX_COMPILER="${CXX:-clang++-21}"
|
||||
fi
|
||||
cmake --build "$build" --target fuzz_readable fuzz_raw
|
||||
|
||||
corpus="${TMPDIR:-/tmp}/cr-fuzz-corpus"
|
||||
mkdir -p "$corpus/readable" "$corpus/raw"
|
||||
|
||||
Reference in new issue
Block a user