]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-105967: Work around a macOS bug, limit zlib C library crc32 API calls to 1gig...
authorGregory P. Smith <greg@krypto.org>
Mon, 4 Dec 2023 20:04:05 +0000 (12:04 -0800)
committerGitHub <noreply@github.com>
Mon, 4 Dec 2023 20:04:05 +0000 (12:04 -0800)
commit4eddb4c9d9452482c9af7fa9eec223d12b5a9f33
tree2f5dd508f62768bf5ab9db585a88c3c73f96c12a
parenta1551b48eebb4a68fda031b5ee9e5cbde8d924dd
gh-105967: Work around a macOS bug, limit zlib C library crc32 API calls to 1gig (#112615)

Work around a macOS bug, limit zlib crc32 calls to 1GiB.

Without this, `zlib.crc32` and `binascii.crc32` could produce incorrect
results on multi-gigabyte inputs depending on the macOS version's Apple
supplied zlib implementation.
Misc/NEWS.d/next/Core and Builtins/2023-12-01-19-02-21.gh-issue-105967.Puq5Cn.rst [new file with mode: 0644]
Modules/binascii.c
Modules/zlibmodule.c