summaryrefslogtreecommitdiff
path: root/source/fitz
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-05-05 20:10:50 +0200
committerTor Andersson <tor.andersson@artifex.com>2015-05-05 20:55:53 +0200
commit7a04cf3e3a23cff52214e2045e93ef44066d5de5 (patch)
treecc175bdea71aa82c9a4927800f1ea002646d2c0d /source/fitz
parent5861733529f3ab3549033599a3b3e9a4dc018ee6 (diff)
downloadmupdf-7a04cf3e3a23cff52214e2045e93ef44066d5de5.tar.xz
Ignore ENTITY declarations in XML.
Diffstat (limited to 'source/fitz')
-rw-r--r--source/fitz/xml.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/fitz/xml.c b/source/fitz/xml.c
index 6051caf5..f301ad71 100644
--- a/source/fitz/xml.c
+++ b/source/fitz/xml.c
@@ -448,6 +448,7 @@ parse_element:
parse_comment:
if (*p == '[') goto parse_cdata;
if (*p == 'D' && !memcmp(p, "DOCTYPE", 7)) goto parse_declaration;
+ if (*p == 'E' && !memcmp(p, "ENTITY", 6)) goto parse_declaration;
if (*p++ != '-') return "syntax error in comment (<! not followed by --)";
if (*p++ != '-') return "syntax error in comment (<!- not followed by -)";
while (*p) {