]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[2.7] bpo-34623: Use XML_SetHashSalt in _elementtree (GH-9146) (GH-9394)
authorChristian Heimes <christian@python.org>
Tue, 18 Sep 2018 13:13:09 +0000 (15:13 +0200)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 18 Sep 2018 13:13:09 +0000 (06:13 -0700)
commit18b20bad75b4ff0486940fba4ec680e96e70f3a2
tree8e8e98dedad14c44568288b4303e8b7552575932
parent5f883fcb9b50b8335953b3849b7f224d5cd59d56
[2.7] bpo-34623: Use XML_SetHashSalt in _elementtree (GH-9146) (GH-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 cb5778f00ce48631c7140f33ba242496aaf7102b)

Co-authored-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue34623
Include/pyexpat.h
Misc/NEWS.d/next/Security/2018-09-10-16-05-39.bpo-34623.Ua9jMv.rst [new file with mode: 0644]
Modules/_elementtree.c
Modules/pyexpat.c