mirror of
https://github.com/python/cpython.git
synced 2025-11-20 19:06:50 +00:00
#9054: fix crash when using pyexpat with a system expat lib version 2.0.1.
This commit is contained in:
parent
6c6a4d0249
commit
c01537f742
2 changed files with 6 additions and 0 deletions
|
|
@ -66,6 +66,9 @@ Library
|
||||||
Extensions
|
Extensions
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
- Issue #9054: Fix a crash occurring when using the pyexpat module
|
||||||
|
with expat version 2.0.1.
|
||||||
|
|
||||||
- Issue #5355: Provide mappings from Expat error numbers to string
|
- Issue #5355: Provide mappings from Expat error numbers to string
|
||||||
descriptions and backwards, in order to actually make it possible
|
descriptions and backwards, in order to actually make it possible
|
||||||
to analyze error codes provided by ExpatError.
|
to analyze error codes provided by ExpatError.
|
||||||
|
|
|
||||||
|
|
@ -351,6 +351,9 @@ call_character_handler(xmlparseobject *self, const XML_Char *buffer, int len)
|
||||||
PyObject *args;
|
PyObject *args;
|
||||||
PyObject *temp;
|
PyObject *temp;
|
||||||
|
|
||||||
|
if (!have_handler(self, CharacterData))
|
||||||
|
return -1;
|
||||||
|
|
||||||
args = PyTuple_New(1);
|
args = PyTuple_New(1);
|
||||||
if (args == NULL)
|
if (args == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue