cpython/Modules/_sha3/kcp
Miss Islington (bot) 857efee6d2
[3.9] gh-98517: Fix buffer overflows in _sha3 module (GH-98519) (#98526)
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]: fdc6fef075
[2]: https://mouha.be/sha-3-buffer-overflow/

Regression test added by: Gregory P. Smith [Google LLC] <greg@krypto.org>
(cherry picked from commit 0e4e058602)

Co-authored-by: Theo Buehler <botovq@users.noreply.github.com>
2022-10-28 12:08:06 +02:00
..
align.h
KeccakHash.c
KeccakHash.h
KeccakP-1600-64.macros
KeccakP-1600-inplace32BI.c Issue #16113: one more C90 violation in big endian code. 2016-09-07 13:18:40 +02:00
KeccakP-1600-opt64-config.h
KeccakP-1600-opt64.c
KeccakP-1600-SnP-opt32.h
KeccakP-1600-SnP-opt64.h
KeccakP-1600-SnP.h
KeccakP-1600-unrolling.macros
KeccakSponge.c
KeccakSponge.h
KeccakSponge.inc [3.9] gh-98517: Fix buffer overflows in _sha3 module (GH-98519) (#98526) 2022-10-28 12:08:06 +02:00
PlSnP-Fallback.inc
SnP-Relaned.h