Commits
Commits on
cbbd6e2ef6acafb00aeb55e460423f024126f90fFiltered to crates/ec-image/src/tiff.rsClear filter2026-08-26
fix(image): close a TIFF LZW dictionary-corruption cycle that grew unboundedAhmet Kaan Gümüş · 55b1d36
fix(image): close a TIFF LZW dictionary-corruption cycle that grew unbounded A code strictly greater than the dictionary's next slot was accepted into the KwKwK branch and stored as `previous`; a later entry then chained through that out-of-range value, breaking the prefix-chain invariant and letting the decode walk cycle, growing `stack` to gigabytes on a fuzzed 8950-byte fixture. Require code == next for KwKwK; anything else is corrupt input, not a decodable stream.