forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 214cdf2befd543569feaaaf45888fe80e40318dfFiltered to crates/ec-inflate/src/lib.rsClear filter

2026-08-14

feat(inflate): DEFLATE/zlib decompression + miniz_oxide shimAhmet Kaan Gümüş · b73c680
feat(inflate): DEFLATE/zlib decompression + miniz_oxide shim

ec-inflate decodes RFC 1951 blocks (stored, fixed, dynamic) through a
two-level Huffman table and wraps them in the RFC 1950 header check and
Adler-32 verification. Every entry point carries the caller's output
ceiling, checked before each write, so a crafted block fails with an
error instead of taking all the memory there is; malformed input is
always an error, never a panic.

shims/miniz_oxide carries the incumbent name and version over it,
exposing the one function edith's Matroska ContentEncodings path uses,
with the same statuses and message strings so the swap needs no source
change.

Tests: round-trip against flate2 at levels 0-9 over seven input shapes
(raw and zlib), ceiling boundaries with partial output preserved,
truncation, Adler-32 mismatch, and a 10k-iteration mutation loop that
must never panic.