-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
[3.4] bpo-34623: Use XML_SetHashSalt in _elementtree #9953
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
Conversation
The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat's default CPRNG. Signed-off-by: Christian Heimes <[email protected]> https://bugs.python.org/issue34623 (cherry picked from commit cb5778f) Co-authored-by: Christian Heimes <[email protected]>
…pythonGH-9489) https://bugs.python.org/issue34623 (cherry picked from commit 026337a) Co-authored-by: Christian Heimes <[email protected]> https://bugs.python.org/issue34623
| } | ||
| /* expat < 2.1.0 has no XML_SetHashSalt() */ | ||
| if (EXPAT(SetHashSalt) != NULL) { | ||
| EXPAT(SetHashSalt)(self_xp->parser, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only line that has been modified from the previous PR's. Namely it's self_xp->parser on 3.4. On the other branches it's self->parser due to argumentclinication.
vstinner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@tiran: Would you mind to review it as well?
|
Oh, Travis CI failed on a random failure: I scheduled a new job. |
|
I closed/reopened the PR to trigger a new Travis CI job. |
|
@larryhastings: Hi Larry, would you mind to merge this security fix? |
|
@larryhastings: Please replace |
|
Thank for the backported fix! |
Backport for the 3.4 branch.
https://bugs.python.org/issue34623