]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-137571: Protect against possible UnboundLocalError in gzip._GzipReader...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 22 May 2026 09:37:57 +0000 (11:37 +0200)
committerGitHub <noreply@github.com>
Fri, 22 May 2026 09:37:57 +0000 (09:37 +0000)
commit46cff6be903165f723fb956bdce407de6b201acc
treebae8974a78125c7c6c5b70980e0b07be071aa49b
parent1df755c135521ab76998e8b7d1b148b1f2101d72
[3.13] gh-137571: Protect against possible UnboundLocalError in gzip._GzipReader.read() (GH-150222) (GH-150231)

This has not been observed in practice, but we cannot be 100% sure that
it will not happen with some weird gzip data.
(cherry picked from commit 28eac9a7263ad8dcfa9b536aa238549131857e0f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/gzip.py