]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-137571: Protect against possible UnboundLocalError in gzip._GzipReader.read()...
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 22 May 2026 09:17:34 +0000 (12:17 +0300)
committerGitHub <noreply@github.com>
Fri, 22 May 2026 09:17:34 +0000 (12:17 +0300)
commit28eac9a7263ad8dcfa9b536aa238549131857e0f
treec8b61f292f5e1ad4f926b963ad9f2cac8bee1b6f
parent1daad8a1630c9ee011f6ff3796c4e7aef243463b
gh-137571: Protect against possible UnboundLocalError in gzip._GzipReader.read() (GH-150222)

This has not been observed in practice, but we cannot be 100% sure that
it will not happen with some weird gzip data.
Lib/gzip.py