summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-12-13 12:56:37 +0000
committerRobin Watts <robin.watts@artifex.com>2012-12-13 12:57:41 +0000
commitfce1eb15fcdb720b7c7ca96220971a246b90bb7a (patch)
tree679fdda29ee90d7d7dc97bcf9c3752ceadee9057
parent6d6fbd73e7a7aeb7bf7c562145964267ef02bf11 (diff)
downloadmupdf-fce1eb15fcdb720b7c7ca96220971a246b90bb7a.tar.xz
Bug 693290: Potential NULL deref in xps
Another fix from zeniko. Thanks again.
-rw-r--r--xps/xps_outline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xps/xps_outline.c b/xps/xps_outline.c
index bd50dd35..2255c51d 100644
--- a/xps/xps_outline.c
+++ b/xps/xps_outline.c
@@ -69,7 +69,7 @@ xps_parse_document_structure(xps_document *doc, fz_xml *root)
if (node && !strcmp(fz_xml_tag(node), "DocumentStructure.Outline"))
{
node = fz_xml_down(node);
- if (!strcmp(fz_xml_tag(node), "DocumentOutline"))
+ if (node && !strcmp(fz_xml_tag(node), "DocumentOutline"))
return xps_parse_document_outline(doc, node);
}
}