Merged revisions 77680 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77680 | matthias.klose | 2010-01-22 01:39:04 +0100 (Fr, 22 Jan 2010) | 3 lines

  - Expat: Fix DoS via XML document with malformed UTF-8 sequences
    (CVE_2009_3560).
........
This commit is contained in:
Matthias Klose 2010-01-22 01:10:19 +00:00
parent b660599fda
commit a50ffe5389
2 changed files with 6 additions and 0 deletions

View File

@ -610,6 +610,9 @@ Extension Modules
- Issue #2389: Array objects are now pickled in a portable manner.
- Expat: Fix DoS via XML document with malformed UTF-8 sequences
(CVE_2009_3560).
Build
-----

View File

@ -3682,6 +3682,9 @@ doProlog(XML_Parser parser,
return XML_ERROR_UNCLOSED_TOKEN;
case XML_TOK_PARTIAL_CHAR:
return XML_ERROR_PARTIAL_CHAR;
case -XML_TOK_PROLOG_S:
tok = -tok;
break;
case XML_TOK_NONE:
#ifdef XML_DTD
/* for internal PE NOT referenced between declarations */