diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-12-04 20:29:23 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-04 20:29:23 (GMT) |
| commit | 88ec2a4fef5e05e281acf30262ae5981eafa44ab (patch) | |
| tree | 931a9ae19e54b10089782da91c27f363a5878256 /Lib/tempfile.py | |
| parent | 8d21242bd1bcde660c81eb86b986afbc7d25a4ba (diff) | |
| download | cpython-88ec2a4fef5e05e281acf30262ae5981eafa44ab.zip cpython-88ec2a4fef5e05e281acf30262ae5981eafa44ab.tar.gz cpython-88ec2a4fef5e05e281acf30262ae5981eafa44ab.tar.bz2 | |
[3.12] gh-105967: Work around a macOS bug, limit zlib C library crc32 API calls to 1gig (GH-112615) (#112724)
gh-105967: Work around a macOS bug, limit zlib C library crc32 API calls to 1gig (GH-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.
(cherry picked from commit 4eddb4c9d9452482c9af7fa9eec223d12b5a9f33)
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Diffstat (limited to 'Lib/tempfile.py')
0 files changed, 0 insertions, 0 deletions
