diff options
-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 */ |