diff options
author | Tor Andersson <tor@ghostscript.com> | 2008-04-25 21:49:32 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2008-04-25 21:49:32 +0200 |
commit | a7a907ad59db15691f93755b1f077b4406c91cfc (patch) | |
tree | 075488da20b3b033f2ba138dfff17ccb18c6a474 | |
parent | 7bf37653e14b8f74d885082c7819fd0be4059b46 (diff) | |
download | mupdf-a7a907ad59db15691f93755b1f077b4406c91cfc.tar.xz |
Emit warning when we encounter truncated images that we pad with zeroes.
-rw-r--r-- | mupdf/pdf_image.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mupdf/pdf_image.c b/mupdf/pdf_image.c index 32b7a52d..ed2ef8e4 100644 --- a/mupdf/pdf_image.c +++ b/mupdf/pdf_image.c @@ -394,6 +394,7 @@ pdf_loadimage(pdf_image **imgp, pdf_xref *xref, fz_obj *dict, fz_obj *ref) buf->wp = buf->bp + expectedsize; fz_dropbuffer(img->samples); img->samples = buf; + fz_warn("truncated image; proceeding anyway"); } /* 0 means opaque and 1 means transparent, so we invert to get alpha */ |