Commits

Matthias Klose  committed f34f8ae

- expat: Fix DoS via malformed XML (CVE-2009-3720).

  • Participants
  • Parent commits 782a40f
  • Branches 2.5

Comments (0)

Files changed (2)

 Extension Modules
 -----------------
 
-- Fix DoS via XML document with malformed UTF-8 sequences (CVE_2009_3560).
+- expat: Fix DoS via XML document with malformed UTF-8 sequences (CVE_2009_3560).
+- expat: Fix DoS via malformed XML (CVE-2009-3720).
 
 
 What's New in Python 2.5.5c1?

File Modules/expat/xmltok_impl.c

                        const char *end,
                        POSITION *pos)
 {
-  while (ptr != end) {
+  while (ptr < end) {
     switch (BYTE_TYPE(enc, ptr)) {
 #define LEAD_CASE(n) \
     case BT_LEAD ## n: \