diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-04-30 21:32:09 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-04-30 21:37:01 +0100 |
commit | 30fa2b290143af2dfd13ac4da6aa4b25ce20f422 (patch) | |
tree | 57690738bba0de2048a2494e5ebc8ba9220fc053 /pdf/pdf_page.c | |
parent | 4376266c2817f4944ac7ef63683a890b152dc7b9 (diff) | |
download | mupdf-30fa2b290143af2dfd13ac4da6aa4b25ce20f422.tar.xz |
Fix problem with SEGV in page tree loading.
Found in a file synthesized by Sebras. Many thanks!
Diffstat (limited to 'pdf/pdf_page.c')
-rw-r--r-- | pdf/pdf_page.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pdf/pdf_page.c b/pdf/pdf_page.c index 55d7ef97..f5fbc0b0 100644 --- a/pdf/pdf_page.c +++ b/pdf/pdf_page.c @@ -114,6 +114,8 @@ pdf_load_page_tree_node(pdf_document *xref, pdf_obj *node, struct info info) } } /* Get the next node */ + if (stacklen < 0) + break; while (++stack[stacklen].pos == stack[stacklen].max) { pdf_dict_unmark(stack[stacklen].node); |