Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 865e33b

Browse files
committed
Merged revisions 77682 via svnmerge from
svn+ssh://[email protected]/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://[email protected]/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). ........ ................
1 parent ea26c6c commit 865e33b

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,9 @@ Extension Modules
272272

273273
- Issue #6848: Fix curses module build failure on OS X 10.6.
274274

275+
- Expat: Fix DoS via XML document with malformed UTF-8 sequences
276+
(CVE_2009_3560).
277+
275278
Tests
276279
-----
277280

Modules/expat/xmlparse.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3682,6 +3682,9 @@ doProlog(XML_Parser parser,
36823682
return XML_ERROR_UNCLOSED_TOKEN;
36833683
case XML_TOK_PARTIAL_CHAR:
36843684
return XML_ERROR_PARTIAL_CHAR;
3685+
case -XML_TOK_PROLOG_S:
3686+
tok = -tok;
3687+
break;
36853688
case XML_TOK_NONE:
36863689
#ifdef XML_DTD
36873690
/* for internal PE NOT referenced between declarations */

0 commit comments

Comments
 (0)