]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-137571: Protect against possible UnboundLocalError in gzip._GzipReader...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 22 May 2026 09:46:05 +0000 (11:46 +0200)
committerGitHub <noreply@github.com>
Fri, 22 May 2026 09:46:05 +0000 (09:46 +0000)
commit58a3681fd22a53c1833c885a7d9d47c8d54cba6a
tree585249548f9b22aa7a46a82fd036e2b923910210
parent954dd2fac7503b7c8a2a86cb72152a9542c5a3e9
[3.14] gh-137571: Protect against possible UnboundLocalError in gzip._GzipReader.read() (GH-150222) (GH-150230)

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