From 4f8cbeed56e888299078b3b98043f70fe8c52cff Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Mon, 25 Aug 2008 00:32:02 +0200 Subject: Require colorspace for images (not really true for JPX). --- mupdf/pdf_image.c | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- cgit v1.2.3