diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2015-05-05 20:10:50 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2015-05-05 20:55:53 +0200 |
commit | 7a04cf3e3a23cff52214e2045e93ef44066d5de5 (patch) | |
tree | cc175bdea71aa82c9a4927800f1ea002646d2c0d /source | |
parent | 5861733529f3ab3549033599a3b3e9a4dc018ee6 (diff) | |
download | mupdf-7a04cf3e3a23cff52214e2045e93ef44066d5de5.tar.xz |
Ignore ENTITY declarations in XML.
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/xml.c | 1 |
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) { |