diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2008-08-25 00:32:02 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2008-08-25 00:32:02 +0200 |
commit | 4f8cbeed56e888299078b3b98043f70fe8c52cff (patch) | |
tree | 9744e04d40ebbd02fb0c422a913243a743590aef | |
parent | 49b0563f8c28e37bba00ec491ee9c95d23ce4339 (diff) | |
download | mupdf-4f8cbeed56e888299078b3b98043f70fe8c52cff.tar.xz |
Require colorspace for images (not really true for JPX).
-rw-r--r-- | mupdf/pdf_image.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mupdf/pdf_image.c b/mupdf/pdf_image.c index 1b1ab254..ce11b7be 100644 --- a/mupdf/pdf_image.c +++ b/mupdf/pdf_image.c @@ -296,6 +296,9 @@ pdf_loadimage(pdf_image **imgp, pdf_xref *xref, fz_obj *dict, fz_obj *ref) pdf_logimage("colorspace %s\n", cs->name); } + if (!cs) + return fz_throw("colorspace missing for image"); + /* * ImageMask, Mask and SoftMask */ |