diff options
author | Matthias Klose <doko@ubuntu.com> | 2010-01-22 01:13:15 +0000 |
---|---|---|
committer | Matthias Klose <doko@ubuntu.com> | 2010-01-22 01:13:15 +0000 |
commit | 865e33bb3df3376577db51a8c9392a9d385924fd (patch) | |
tree | 1879ce566fca2b21c0350ddcb4d3287ea84b92e8 /Modules/expat | |
parent | ea26c6c154d35ea38d909568bb9fad6ae86159dd (diff) | |
download | cpython-git-865e33bb3df3376577db51a8c9392a9d385924fd.tar.gz |
Merged revisions 77682 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r77682 | matthias.klose | 2010-01-22 02:10:19 +0100 (Fr, 22 Jan 2010) | 10 lines
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).
........
................
Diffstat (limited to 'Modules/expat')
-rw-r--r-- | Modules/expat/xmlparse.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/expat/xmlparse.c b/Modules/expat/xmlparse.c index e04426d0cc..105958b649 100644 --- a/Modules/expat/xmlparse.c +++ b/Modules/expat/xmlparse.c @@ -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 */ |