aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorTim Hatch <timhatch@netflix.com>2025-05-20 18:32:41 -0700
committerGitHub <noreply@github.com>2025-05-20 18:32:41 -0700
commit1298511b41ec0f9be925c12f3830e94fe8f7e7dc (patch)
treeb78c9417d7203fdd5d47a8c1f5d5aecb9fc8ab8e /Python/pystate.c
parentd327159eb4dd286973d10af93999de90a860880a (diff)
downloadcpython-1298511b41ec0f9be925c12f3830e94fe8f7e7dc.tar.gz
cpython-1298511b41ec0f9be925c12f3830e94fe8f7e7dc.zip
gh-72680: Fix false positives when using zipfile.is_zipfile() (GH-134250)
bpo-28494: Improve zipfile.is_zipfile reliability The zipfile.is_zipfile function would only search for the EndOfZipfile section header. This failed to correctly identify non-zipfiles that contained this header. Now the zipfile.is_zipfile function verifies the first central directory entry. Changes: * Extended zipfile.is_zipfile to verify zipfile catalog * Added tests to validate failure of binary non-zipfiles * Reuse 'concat' handling for is_zipfile Co-authored-by: John Jolly <john.jolly@gmail.com>
Diffstat (limited to 'Python/pystate.c')
0 files changed, 0 insertions, 0 deletions