]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.4] bpo-34623: Use XML_SetHashSalt in _elementtree (#9953)
authorstratakis <cstratak@redhat.com>
Mon, 25 Feb 2019 21:02:17 +0000 (22:02 +0100)
committerlarryhastings <larry@hastings.org>
Mon, 25 Feb 2019 21:02:17 +0000 (13:02 -0800)
commitd16eaf36795da48b930b80b20d3805bc27820712
treefbc96566a12147a36a820c22cb57bc7494ee8c32
parentcd1d5c554c40b5b348de2e77d65986aa154e4477
[3.4] bpo-34623: Use XML_SetHashSalt in _elementtree (#9953)

* 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 cb5778f00ce48631c7140f33ba242496aaf7102b)

Co-authored-by: Christian Heimes <christian@python.org>
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