Repository navigation
docs(design): document zlib codec invariants and basis-window contract - #5627
Merged
Merged
Conversation
oferchen
force-pushed
the
docs/uts-18-k-zlib-codec-invariants
branch
from
June 10, 2026 19:55
0a9e8a5 to
f55183d
Compare
Records the wire-byte and runtime invariants that govern the delta-transfer codec stack: the upstream-compatible zlib token decoder, the BufferedMap basis-window mapper, and the streaming raw-deflate primitives in the compress crate. Closes the documentation gap left open by the UTS-18 series (BufferedMap fail-loud bounds, window_len clamp, never-shrink) and PR #5535 (URV-1 zlib obuf overflow on matched-block inserts). - New design doc at docs/design/zlib-codec-invariants.md catalogues wire invariants (INSERT / COPY / END token contracts), runtime invariants per code path, the failure-mode -> regression-test table, and fuzz target rationale. - New complementary fuzz target fuzz/fuzz_targets/zlib_token_decode.rs drives CountingZlibDecoder through arbitrary byte sequences under streaming read semantics. Asserts panic-freedom, monotonic byte-counter, and 100x expansion ceiling. Uses only existing crate APIs. - Two new unit tests in crates/compress/src/zlib/tests.rs pin the malformed-INSERT and COPY-past-EOF panic-freedom guarantees at the streaming decoder layer (malformed stored-block NLEN check, post-EOF Ok(0) tail reads). - Wires zlib_token_decode into the nightly fuzz-coverage matrix workflow and the FCV-20.c coverage tracking table.
oferchen
force-pushed
the
docs/uts-18-k-zlib-codec-invariants
branch
from
June 10, 2026 20:03
f55183d to
430e3a1
Compare
2 tasks
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…iants docs(design): document zlib codec invariants and basis-window contract
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
Changes
Test plan