mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
handler would cause a segfault. This merges in Expat's lib/xmlparse.c revisions 1.154 and 1.155, which fix this and a closely related problem (the later does not affect Python). Moved the crasher test to the tests for xml.parsers.expat.
This commit is contained in:
parent
7596e8342e
commit
6ffe499397
3 changed files with 23 additions and 56 deletions
|
|
@ -2552,6 +2552,8 @@ doContent(XML_Parser parser,
|
|||
(int)(dataPtr - (ICHAR *)dataBuf));
|
||||
if (s == next)
|
||||
break;
|
||||
if (ps_parsing == XML_FINISHED || ps_parsing == XML_SUSPENDED)
|
||||
break;
|
||||
*eventPP = s;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue