mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
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.
4 lines
233 B
ReStructuredText
4 lines
233 B
ReStructuredText
Workaround a bug in Apple's macOS platform zlib library where
|
|
:func:`zlib.crc32` and :func:`binascii.crc32` could produce incorrect results
|
|
on multi-gigabyte inputs. Including when using :mod:`zipfile` on zips
|
|
containing large data.
|