cpython/Modules/clinic
Gregory P. Smith 9d1c4d69db
bpo-38256: Fix binascii.crc32() when inputs are 4+GiB (GH-32000)
When compiled with `USE_ZLIB_CRC32` defined (`configure` sets this on POSIX systems), `binascii.crc32(...)` failed to compute the correct value when the input data was >= 4GiB. Because the zlib crc32 API is limited to a 32-bit length.

This lines it up with the `zlib.crc32(...)` implementation that doesn't have that flaw.

**Performance:** This also adopts the same GIL releasing for larger inputs logic that `zlib.crc32` has, and causes the Windows build to always use zlib's crc32 instead of our slow C code as zlib is a required build dependency on Windows.
2022-03-20 12:28:15 -07:00
..
_abc.c.h
_asynciomodule.c.h bpo-47039: Normalize repr() of asyncio future and task objects (GH-31950) 2022-03-17 03:03:09 +02:00
_bisectmodule.c.h
_bz2module.c.h
_codecsmodule.c.h
_collectionsmodule.c.h
_contextvarsmodule.c.h
_cryptmodule.c.h
_curses_panel.c.h
_cursesmodule.c.h
_datetimemodule.c.h
_dbmmodule.c.h
_elementtree.c.h bpo-45948: Remove constructor discrepancy in C version of ElementTree.XMLParser (GH-31152) 2022-02-12 10:27:02 +02:00
_gdbmmodule.c.h
_hashopenssl.c.h
_heapqmodule.c.h
_localemodule.c.h
_lsprof.c.h
_lzmamodule.c.h
_opcode.c.h
_operator.c.h
_pickle.c.h
_queuemodule.c.h
_randommodule.c.h
_sre.c.h
_ssl.c.h
_statisticsmodule.c.h
_struct.c.h
_testmultiphase.c.h bpo-46613: Add PyType_GetModuleByDef to the public API (GH-31081) 2022-02-11 17:22:11 +01:00
_tkinter.c.h
_tracemalloc.c.h
_typingmodule.c.h
_weakref.c.h bpo-46937: convert remaining functions to AC in _weakref (GH-31705) 2022-03-07 18:57:45 +09:00
_winapi.c.h
arraymodule.c.h bpo-46541: Remove usage of _Py_IDENTIFIER from array module (GH-31376) 2022-02-17 13:02:17 +09:00
audioop.c.h
binascii.c.h
cmathmodule.c.h
fcntlmodule.c.h
gcmodule.c.h
grpmodule.c.h
itertoolsmodule.c.h bpo-46728: fix docstring of combinations_with_replacement for consistency (GH-31293) 2022-02-15 09:02:21 +09:00
mathmodule.c.h
md5module.c.h
overlapped.c.h bpo-47003: Cleanup _overlapped module (GH-31848) 2022-03-13 23:28:45 +02:00
posixmodule.c.h bpo-46315: Add ifdef HAVE_ feature checks for WASI compatibility (GH-30507) 2022-01-13 09:46:04 +01:00
pwdmodule.c.h
pyexpat.c.h
readline.c.h
resource.c.h bpo-40280: Address more test failures on Emscripten (GH-31050) 2022-02-05 20:52:01 +01:00
selectmodule.c.h bpo-41857: mention timeout argument units in select.poll() and select.depoll() doc-strings (GH-22406) 2022-01-21 01:08:44 +02:00
sha1module.c.h
sha256module.c.h
sha512module.c.h
signalmodule.c.h bpo-41498: Fix build on platforms without sigset_t (GH-29770) 2021-11-25 12:28:41 +01:00
spwdmodule.c.h
symtablemodule.c.h
termios.c.h
unicodedata.c.h
zlibmodule.c.h bpo-38256: Fix binascii.crc32() when inputs are 4+GiB (GH-32000) 2022-03-20 12:28:15 -07:00