poppler/JPEG2000Stream.h |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit cf32faaa16d763561fb9dfc4469345e4b3ba2369
Author: Albert Astals Cid <[email protected]>
Date:   Wed Nov 24 21:48:54 2010 +0000

    Protect against NULL values here

diff --git a/poppler/JPEG2000Stream.h b/poppler/JPEG2000Stream.h
index adec1c3..bda2721 100644
--- a/poppler/JPEG2000Stream.h
+++ b/poppler/JPEG2000Stream.h
@@ -67,6 +67,8 @@ private:
       adjust = image->comps[component].prec - 8;
     }
 
+    if (unlikely(image->comps[component].data == NULL)) return EOF;
+
     int r = image->comps[component].data[y * w + x];
     r += (image->comps[component].sgnd ? 1 << (image->comps[0].prec - 1) : 0);
 
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to