summaryrefslogtreecommitdiff
path: root/pdf/pdf_page.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-04-08 18:08:45 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-04-08 18:08:45 +0200
commitae039a6b71fb9afddd29cf289e0f9a2be23803c5 (patch)
tree34bc401c57d45a39b7b9552c6826fbad486cc5e0 /pdf/pdf_page.c
parent649c79c91175dd1d116772d24e76554c440d90a8 (diff)
downloadmupdf-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.c12
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)