forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 5c8eff8ca5a0d547bfb22a690b3f7afb373da607Filtered to crates/ec-image/src/tiff.rsClear filter

2026-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.