poppler/JBIG2Stream.cc | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 4c6ecdf1c65bfc9949aa0b9a7fd8cea36e36cc8d
Author: Albert Astals Cid <[email protected]>
Date: Tue Jun 29 21:44:02 2010 +0100
bitmap can be null at this stage, check it isn't
diff --git a/poppler/JBIG2Stream.cc b/poppler/JBIG2Stream.cc
index 95123a6..f13f662 100644
--- a/poppler/JBIG2Stream.cc
+++ b/poppler/JBIG2Stream.cc
@@ -2461,6 +2461,9 @@ void JBIG2Stream::readPatternDictSeg(Guint segNum, Guint
length) {
templ, gFalse, gFalse, NULL,
atx, aty, length - 7);
+ if (!bitmap)
+ return;
+
// create the pattern dict object
patternDict = new JBIG2PatternDict(segNum, grayMax + 1);
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler