You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
zlib.Decompress.flush() silently returns corrupted output instead of raising zlib.error #156173
zlib.Decompress.flush() discards errors returned by inflate(), so corrupt data comes back truncated and garbled with no exception, while decompress() reports this correctly.
I see, however those look correct, they were depending on the buggy behaviour (in tests the output doesn't matter, but in practice the corrupted data would be incorrect).
Activity
gh-156173: Fix `zlib.Decompress.flush()` silently returning corrupted…
[3.13] gh-156173: Fix `zlib.Decompress.flush()` silently returning co…
[3.14] gh-156173: Fix `zlib.Decompress.flush()` silently returning co…
cjwatson commentedon Sep 20, 2026
FWIW, I noticed that this caused test failures in urllib3: urllib3/urllib3#5268
StanFromIreland commentedon Sep 20, 2026
I see, however those look correct, they were depending on the buggy behaviour (in tests the output doesn't matter, but in practice the corrupted data would be incorrect).
cjwatson commentedon Sep 20, 2026
Fair enough - just wanted to keep you informed in case I'd misunderstood where the problem was.
[3.15] gh-156173: Fix `zlib.Decompress.flush()` silently returning co…