mirror of
https://github.com/python/cpython.git
synced 2026-02-08 10:50:35 +00:00
* [3.14] gh-90949: add Expat API to prevent XML deadly allocations (CVE-2025-59375) (GH-139234) Expose the XML Expat 2.7.2 mitigation APIs to disallow use of disproportional amounts of dynamic memory from within an Expat parser (see CVE-2025-59375 for instance). The exposed APIs are available on Expat parsers, that is, parsers created by `xml.parsers.expat.ParserCreate()`, as: - `parser.SetAllocTrackerActivationThreshold(threshold)`, and - `parser.SetAllocTrackerMaximumAmplification(max_factor)`. (cherry picked from commit |
||
|---|---|---|
| .. | ||
| ascii.h | ||
| asciitab.h | ||
| COPYING | ||
| expat.h | ||
| expat_config.h | ||
| expat_external.h | ||
| iasciitab.h | ||
| internal.h | ||
| latin1tab.h | ||
| nametab.h | ||
| pyexpatns.h | ||
| refresh.sh | ||
| siphash.h | ||
| utf8tab.h | ||
| winconfig.h | ||
| xmlparse.c | ||
| xmlrole.c | ||
| xmlrole.h | ||
| xmltok.c | ||
| xmltok.h | ||
| xmltok_impl.c | ||
| xmltok_impl.h | ||
| xmltok_ns.c | ||