bpo-34623: Use XML_SetHashSalt in _elementtree #9146
Merged
Conversation
LGTM. Just a minor question on the NEWS entry. |
@@ -0,0 +1,2 @@ | |||
The C accelerated _elementtree module now initializes hash randomization | |||
salt from _Py_HashSecret instead of libexpat's default CPRNG. |
vstinner
Sep 11, 2018
Member
CPRNG or CSPRNG? :-) Maybe even write "cryptographic pseudo-random number generator (CPRNG)".
Include/pyexpat.h
Outdated
@@ -48,6 +52,9 @@ struct PyExpat_CAPI | |||
enum XML_Status (*SetEncoding)(XML_Parser parser, const XML_Char *encoding); | |||
int (*DefaultUnknownEncodingHandler)( | |||
void *encodingHandlerData, const XML_Char *name, XML_Encoding *info); | |||
#if PYEXPAT_COMBINED_VERSION >= 20100 |
serhiy-storchaka
Sep 11, 2018
Member
Couldn't adding the slot conditionally break binary compatibility?
tiran
Sep 17, 2018
Author
Member
The new PyExpat_CAPI_MAGIC version ensures that only compatible modules are loaded.
The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat's default CPRNG. Signed-off-by: Christian Heimes <christian@python.org>
cb5778f
into
python:master
9 checks passed
9 checks passed
bedevere/news
News entry found in Misc/NEWS.d
Thanks @tiran for the PR |
miss-islington
added a commit
to miss-islington/cpython
that referenced
this pull request
Sep 18, 2018
The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat's default CPRNG. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623 (cherry picked from commit cb5778f) Co-authored-by: Christian Heimes <christian@python.org>
GH-9392 is a backport of this pull request to the 3.7 branch. |
miss-islington
added a commit
to miss-islington/cpython
that referenced
this pull request
Sep 18, 2018
The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat's default CPRNG. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623 (cherry picked from commit cb5778f) Co-authored-by: Christian Heimes <christian@python.org>
GH-9393 is a backport of this pull request to the 3.6 branch. |
Sorry, @tiran, I could not cleanly backport this to |
tiran
added a commit
to tiran/cpython
that referenced
this pull request
Sep 18, 2018
The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat's default CPRNG. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623. (cherry picked from commit cb5778f) Co-authored-by: Christian Heimes <christian@python.org>
GH-9394 is a backport of this pull request to the 2.7 branch. |
tiran
added a commit
to tiran/cpython
that referenced
this pull request
Sep 18, 2018
The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat's default CPRNG. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623. (cherry picked from commit cb5778f) Co-authored-by: Christian Heimes <christian@python.org>
miss-islington
added a commit
that referenced
this pull request
Sep 18, 2018
The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat's default CPRNG. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623 (cherry picked from commit cb5778f) Co-authored-by: Christian Heimes <christian@python.org>
miss-islington
added a commit
that referenced
this pull request
Sep 18, 2018
The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat's default CPRNG. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623. (cherry picked from commit cb5778f) Co-authored-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623
miss-islington
added a commit
that referenced
this pull request
Sep 18, 2018
The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat's default CPRNG. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623 (cherry picked from commit cb5778f) Co-authored-by: Christian Heimes <christian@python.org>
stratakis
added a commit
to stratakis/cpython
that referenced
this pull request
Oct 17, 2018
The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat's default CPRNG. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623 (cherry picked from commit cb5778f) Co-authored-by: Christian Heimes <christian@python.org>
stratakis
added a commit
to stratakis/cpython
that referenced
this pull request
Oct 18, 2018
The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat's default CPRNG. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623 (cherry picked from commit cb5778f) Co-authored-by: Christian Heimes <christian@python.org>
yahya-abou-imran
added a commit
to yahya-abou-imran/cpython
that referenced
this pull request
Nov 2, 2018
The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat's default CPRNG. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623
mingwandroid
added a commit
to mingwandroid/cpython
that referenced
this pull request
Feb 18, 2019
…nGH-9394) The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat's default CPRNG. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623. (cherry picked from commit cb5778f) Co-authored-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623
mingwandroid
added a commit
to mingwandroid/cpython
that referenced
this pull request
Feb 23, 2019
…nGH-9394) The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat's default CPRNG. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623. (cherry picked from commit cb5778f) Co-authored-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623
larryhastings
added a commit
that referenced
this pull request
Feb 25, 2019
* bpo-34623: Use XML_SetHashSalt in _elementtree (GH-9146) The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat's default CPRNG. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623 (cherry picked from commit cb5778f) Co-authored-by: Christian Heimes <christian@python.org>
larryhastings
added a commit
that referenced
this pull request
Feb 25, 2019
* bpo-34623: Use XML_SetHashSalt in _elementtree (GH-9146) The C accelerated _elementtree module now initializes hash randomization salt from _Py_HashSecret instead of libexpat's default CPRNG. Signed-off-by: Christian Heimes <christian@python.org> https://bugs.python.org/issue34623 (cherry picked from commit cb5778f) Co-authored-by: Christian Heimes <christian@python.org>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
The C accelerated _elementtree module now initializes hash randomization
salt from _Py_HashSecret instead of libexpat's default CPRNG.
Signed-off-by: Christian Heimes christian@python.org
https://bugs.python.org/issue34623