Skip to content

bpo-1635741: port sha3 module to multi-phase init - #21855

Merged
vstinner merged 10 commits into
python:masterfrom
koubaa:bpo-1635741-sha3
Sep 2, 2020
Merged

bpo-1635741: port sha3 module to multi-phase init#21855
vstinner merged 10 commits into
python:masterfrom
koubaa:bpo-1635741-sha3

Conversation

@koubaa

@koubaa koubaa commented Aug 13, 2020

Copy link
Copy Markdown
Contributor
@koubaa

koubaa commented Aug 22, 2020

Copy link
Copy Markdown
Contributor Author

@vstinner @shihai1991 please review

Comment thread Modules/_sha3/sha3module.c Outdated
Comment thread Modules/_sha3/sha3module.c Outdated
Comment thread Modules/_sha3/sha3module.c Outdated
Comment thread Modules/_sha3/sha3module.c Outdated
Comment thread Modules/_sha3/sha3module.c Outdated
Comment thread Modules/_sha3/sha3module.c Outdated
Comment thread Modules/_sha3/sha3module.c Outdated
Comment thread Misc/NEWS.d/next/Core and Builtins/2020-08-13-07-19-21.bpo-1653741.fubBkb.rst Outdated
Comment thread Modules/_sha3/sha3module.c
Comment thread Modules/_sha3/sha3module.c Outdated
Comment thread Modules/_sha3/sha3module.c Outdated
Comment thread Modules/_sha3/sha3module.c Outdated

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@corona10 @shihai1991: The change is mostly LGTM (remaining comments are mostly about minor coding style issues), but I would prefer a second review. Would you mind to review this PR?

Comment thread Modules/_sha3/sha3module.c
Comment thread Modules/_sha3/sha3module.c Outdated
Comment thread Modules/_sha3/sha3module.c Outdated
Comment thread Modules/_sha3/sha3module.c Outdated
Comment thread Modules/_sha3/sha3module.c Outdated

@shihai1991 shihai1991 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thans for update.

Comment thread Modules/_sha3/sha3module.c Outdated
Comment thread Modules/_sha3/sha3module.c Outdated
Co-authored-by: Victor Stinner <vstinner@python.org>

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

Comment thread Misc/NEWS.d/next/Core and Builtins/2020-08-13-07-19-21.bpo-1653741.fubBkb.rst Outdated
@vstinner
vstinner merged commit 93d50a6 into python:master Sep 2, 2020
xzy3 pushed a commit to xzy3/cpython that referenced this pull request Oct 18, 2020
Port the _sha3 extension module to multi-phase init (PEP 489).
Convert static types to heap types.
@tiran

tiran commented Apr 17, 2021

Copy link
Copy Markdown
Member

Please respect the code ownership / expert index and do not merge any PRs without approval of a domain expert. This PR introduced a possible security issue.

tiran added a commit to tiran/cpython that referenced this pull request Apr 17, 2021
Commit 93d50a6 / pythonGH-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>
tiran added a commit that referenced this pull request Apr 18, 2021
Commit 93d50a6 / 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

6 participants