Commit graph

4 commits

Author SHA1 Message Date
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
Christian Heimes
eaa3f5f1ee Issue #16113: one more C90 violation in big endian code. 2016-09-07 13:18:40 +02:00
Christian Heimes
fa15c854d2 Issue #16113: take 2 on big endian machines. 2016-09-07 13:01:15 +02:00
Christian Heimes
6fe2a75b64 Issue #16113: Add SHA-3 and SHAKE support to hashlib module. 2016-09-07 11:58:24 +02:00