]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-149945: Fix potential OOM for gzip with large header (GH-149979)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 19 May 2026 16:20:01 +0000 (19:20 +0300)
committerGitHub <noreply@github.com>
Tue, 19 May 2026 16:20:01 +0000 (19:20 +0300)
commit51a5715df9c56f616944cf1b39323bd6ae009143
tree56851cb43a080a75d70458ec2c8e1db7e99b4ee1
parent08218030a507b2ef38db9696216bf3eb24d9a6a1
gh-149945: Fix potential OOM for gzip with large header (GH-149979)

Do not read the whole filename and comment to memory for calculating the CRC.
Lib/gzip.py