diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2008-08-16 16:17:28 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2008-08-16 16:17:28 +0200 |
commit | e73216565206ab03e4fb5fce1da1d30a1d02958b (patch) | |
tree | 4ed2f9062f3fe9f1192173a0fa57c4734267deca | |
parent | 03b4164d1456d28612941fbd68356098d989dfb0 (diff) | |
download | mupdf-e73216565206ab03e4fb5fce1da1d30a1d02958b.tar.xz |
Properly catch pagetree nodes with invalid type.
-rw-r--r-- | mupdf/pdf_pagetree.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mupdf/pdf_pagetree.c b/mupdf/pdf_pagetree.c index c1625275..20486ff3 100644 --- a/mupdf/pdf_pagetree.c +++ b/mupdf/pdf_pagetree.c @@ -106,6 +106,9 @@ loadpagetree(pdf_xref *xref, pdf_pagetree *pages, pdf_logpage("}\n"); } + else + return fz_throw("pagetree node has unexpected type %s", fz_toname(type)); + return fz_okay; } |