summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2008-08-25 00:32:02 +0200
committerSebastian Rasmussen <sebras@hotmail.com>2008-08-25 00:32:02 +0200
commit4f8cbeed56e888299078b3b98043f70fe8c52cff (patch)
tree9744e04d40ebbd02fb0c422a913243a743590aef
parent49b0563f8c28e37bba00ec491ee9c95d23ce4339 (diff)
downloadmupdf-4f8cbeed56e888299078b3b98043f70fe8c52cff.tar.xz
Require colorspace for images (not really true for JPX).
-rw-r--r--mupdf/pdf_image.c3
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
*/