diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-08 18:08:45 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-08 18:08:45 +0200 |
commit | ae039a6b71fb9afddd29cf289e0f9a2be23803c5 (patch) | |
tree | 34bc401c57d45a39b7b9552c6826fbad486cc5e0 /pdf/pdf_page.c | |
parent | 649c79c91175dd1d116772d24e76554c440d90a8 (diff) | |
download | mupdf-ae039a6b71fb9afddd29cf289e0f9a2be23803c5.tar.xz |
Be even less strict about broken page content array parts.
Diffstat (limited to 'pdf/pdf_page.c')
-rw-r--r-- | pdf/pdf_page.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/pdf/pdf_page.c b/pdf/pdf_page.c index b73bc150..bf9bf411 100644 --- a/pdf/pdf_page.c +++ b/pdf/pdf_page.c @@ -220,16 +220,8 @@ pdf_load_page_contents_array(fz_buffer **bigbufp, pdf_xref *xref, fz_obj *list) error = pdf_load_stream(&one, xref, fz_to_num(stm), fz_to_gen(stm)); if (error) { - if (i == 0) - { - fz_drop_buffer(big); - return fz_rethrow(error, "cannot load content stream part %d/%d", i + 1, n); - } - else - { - fz_catch(error, "cannot load content stream part %d/%d", i + 1, n); - break; - } + fz_catch(error, "cannot load content stream part %d/%d", i + 1, n); + continue; } if (big->len + one->len + 1 > big->cap) |