cpython/Modules/_sha3/kcp
Theo Buehler 0e4e058602
[3.10] gh-98517: Fix buffer overflows in _sha3 module (#98519)
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>
2022-10-21 12:26:01 -07:00
..
align.h
KeccakHash.c
KeccakHash.h
KeccakP-1600-64.macros
KeccakP-1600-inplace32BI.c
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
PlSnP-Fallback.inc
SnP-Relaned.h