SIGN IN SIGN UP

bpo-43362: Fix invalid free and return check in _sha3 module (GH-25463)

Commit 93d50a6a8d0c5d332c11aef267e66573a09765ac / GH-21855 changed the
order of variable definitions, which introduced a potential invalid free
bug. Py_buffer object is now initialized earlier and the result of
Keccak initialize is verified.

Co-authored-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Christian Heimes <christian@python.org>

Co-authored-by: Alex Henrie <alexhenrie24@gmail.com>
C
Christian Heimes committed
aa6da32edc3c6ddfda5e849561e20273b8d82771
Parent: f5c5c0c
Committed by GitHub <noreply@github.com> on 4/18/2021, 6:39:39 AM