Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Sep 2, 2020

Conversation

koubaa
Copy link
Contributor

@koubaa koubaa commented Aug 13, 2020

@koubaa
Copy link
Contributor Author

koubaa commented Aug 22, 2020

@vstinner @shihai1991 please review

Copy link
Member

@vstinner vstinner left a comment

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?

Copy link
Member

@shihai1991 shihai1991 left a comment

Choose a reason for hiding this comment

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

Thans for update.

Co-authored-by: Victor Stinner <vstinner@python.org>
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@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
Copy link
Member

tiran commented Apr 17, 2021

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants