Skip to content

Commit

Permalink
Expat: Applied patches to fix CVE-2009-3560 and CVE-2009-2625.
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Apr 11, 2010
1 parent 90917b0 commit 22ed032
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions 3rdparty/expat/lib/xmlparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -3703,6 +3703,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 */
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/expat/lib/xmltok_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,7 @@ PREFIX(updatePosition)(const ENCODING *enc,
const char *end,
POSITION *pos)
{
while (ptr != end) {
while (ptr < end) {
switch (BYTE_TYPE(enc, ptr)) {
#define LEAD_CASE(n) \
case BT_LEAD ## n: \
Expand Down

0 comments on commit 22ed032

Please sign in to comment.