Repository navigation
test(fuzz): add buffered_map fuzz target + UTS-18 regression corpus - #5590
Merged
Merged
Conversation
Locks coverage of the UTS-18.f / UTS-18.g panic class in `transfer::map_file::BufferedMap` closed by PR #5566 (fail-loud `copy_within` + slice guards) and PR #5569 (`window_len` clamp at the source). Future regressions in `load_window` overlap-shrink or `map_ptr` slice bounds surface as nightly fuzz-coverage findings instead of waiting on a real crash report. - New libFuzzer target `fuzz/fuzz_targets/buffered_map.rs` drives both panic sites through the public `MapStrategy::map_ptr` entry. Six u64 LE words at the head of each input parametrize `(file_size, window_size, request_start/len, second_start/len)`; remaining bytes tile the synthetic basis file. Two `map_ptr` calls per input cover the empty-cache load path and the forward-overlap branch of `load_window`. - Three deterministic corpus seeds under `fuzz/corpus/buffered_map/`: `uts_18_overlap_shrink.bin` mirrors the production crash math (file=48128, MAX_MAP_SIZE=262144); `uts_18_truncated.bin` covers the 48-byte header boundary; `uts_18_zero_len.bin` covers the `len == 0` short-circuit. - `buffered_map` wired into `.github/workflows/fuzz-coverage-report.yml` matrix so the nightly run uploads lcov for the new target. - Audit note at `docs/audits/edg-panic-4-buffered-fuzz.md`.
oferchen
force-pushed
the
test/edg-panic-4-buffered-map-fuzz-corpus
branch
from
June 10, 2026 19:03
1b935d2 to
6d273b4
Compare
4 tasks
2 tasks
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…fuzz-corpus test(fuzz): add buffered_map fuzz target + UTS-18 regression corpus
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
UTS-18.j: extend URV-1 attestation with the basis-window panic chain discovered after the original codec-only audit cleared the file. Document the three follow-on regressions (window_len overstatement, buffer.resize overlap-shrink, bare slice index on misaligned chunk requests) and the remediation PRs (#5566, #5569, #5588, #5590, #5627). UTS-18.i: keep `compress-zlib-insert` out of the upstream-testsuite known-failures list so the workflow's wildcard run surfaces any regression as an UNEXPECTED FAIL. The cell already iterates `$suitedir/*.test`, so explicit wiring is the explanatory comment in `tools/ci/upstream_testsuite_known_failures.conf` plus the attestation-doc cross-reference.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fuzz/fuzz_targets/buffered_map.rsthat drivestransfer::map_file::BufferedMapthrough both UTS-18 panic sites (load_windowoverlap-shrink +map_ptrslice index) via the publicMapStrategy::map_ptrentry point all four untrusted callers share. Coverage locks in the fail-loud guards from PR fix(transfer): turn buffered map_file out-of-range panic into Err #5566 and thewindow_lenclamp from PR fix(transfer): clamp window_len to remaining file bytes in load_window #5569 so a regression in either path surfaces as a nightly fuzz-coverage finding instead of waiting on a real crash report.fuzz/corpus/buffered_map/derived from the UTS-18 trigger scenarios:uts_18_overlap_shrink.binmirrors the production crash math (file=48128,MAX_MAP_SIZE=262144);uts_18_truncated.bincovers the 48-byte header boundary;uts_18_zero_len.bincovers thelen == 0short-circuit inmap_ptr.buffered_mapinto.github/workflows/fuzz-coverage-report.ymlmatrix (auto-discovery infuzz-coverage.ymlsmoke run picks it up automatically) and documents the harness + seeds indocs/audits/edg-panic-4-buffered-fuzz.md.Test plan
fuzz-coverage.yml) auto-discoversbuffered_mapvials fuzz/fuzz_targets/and exits cleanly.fuzz-coverage-report.ymlincludes abuffered_mapmatrix entry and uploadscoverage/buffered_map.lcovto the run artifacts.cargo +nightly fuzz build buffered_mapsucceeds against thetransfercrate'sdefault-features = falsebuild (no new fuzz-crate dependencies beyond the already-pinnedlibfuzzer-sysandtempfile).cargo +nightly fuzz run buffered_map fuzz/corpus/buffered_map -- -runs=0.