SF bug #1296433 (Expat bug #1515266): Unchecked calls to character data

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:
Fred Drake 2006-07-01 16:28:20 +00:00
parent 7596e8342e
commit 6ffe499397
3 changed files with 23 additions and 56 deletions

View file

@ -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;
}
}