From b0dd445c76ec8d36648c9f8c9c10b738e963908e Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 13 Jan 2012 17:58:19 +0000 Subject: Avoid infinite loops with XObjects. Every xobject keeps a reference to the object from whence it came. This is marked/unmarked as it is executed. Thanks to Zeniko for spotting the potential problem. --- pdf/pdf_page.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pdf/pdf_page.c') diff --git a/pdf/pdf_page.c b/pdf/pdf_page.c index 536cd5ac..7ccf78a3 100644 --- a/pdf/pdf_page.c +++ b/pdf/pdf_page.c @@ -66,7 +66,7 @@ pdf_load_page_tree_node(pdf_xref *xref, fz_obj *node, struct info info) pdf_load_page_tree_node(xref, obj, info); } } - else + else if (fz_is_dict(node)) { dict = fz_resolve_indirect(node); -- cgit v1.2.3