mirror of
https://github.com/python/cpython.git
synced 2026-05-11 23:18:57 -04:00
0e4e058602
This is a port of the applicable part of XKCP's fix [1] for CVE-2022-37454 and avoids the segmentation fault and the infinite loop in the test cases published in [2]. [1]: https://github.com/XKCP/XKCP/commit/fdc6fef075f4e81d6b1bc38364248975e08e340a [2]: https://mouha.be/sha-3-buffer-overflow/ Regression test added by: Gregory P. Smith [Google LLC] <greg@krypto.org>
Keccak Code Package =================== The files in kcp are taken from the Keccak Code Package. They have been slightly to be C89 compatible. The architecture specific header file KeccakP-1600-SnP.h ha been renamed to KeccakP-1600-SnP-opt32.h or KeccakP-1600-SnP-opt64.h. The 64bit files were generated with generic64lc/libkeccak.a.pack target, the 32bit files with generic32lc/libkeccak.a.pack.