]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38256: Fix binascii.crc32 large input. (GH-32000) (GH-32013) (GH-32015)
authorGregory P. Smith <greg@krypto.org>
Mon, 21 Mar 2022 06:34:45 +0000 (23:34 -0700)
committerGitHub <noreply@github.com>
Mon, 21 Mar 2022 06:34:45 +0000 (23:34 -0700)
commit58a7e130375776b192a99b013bc563205a639edc
tree5560a321c174f70ea6a95b2cd64ddcb52fcfac9d
parent4aa8b802513340d12a6ffea3d5e2228ac6c7d5b8
bpo-38256: Fix binascii.crc32 large input. (GH-32000) (GH-32013) (GH-32015)

Inputs >= 4GiB to `binascii.crc32(...)` when compiled to use the zlib
crc32 implementation (the norm on POSIX) no longer return the wrong
result.

(cherry picked from commit 4c989e19c84ec224655bbbde9422e16d4a838a80)
Lib/test/test_binascii.py
Misc/NEWS.d/next/Library/2022-03-19-15-54-41.bpo-38256.FoMbjE.rst [new file with mode: 0644]
Modules/binascii.c