[poppler] poppler/JBIG2Stream.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Tue Jun 29 13:45:11 PDT 2010
poppler/JBIG2Stream.cc | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 16e15ac845206217086e2adac9f220e75c0c630d
Author: Albert Astals Cid <aacid at kde.org>
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);
More information about the poppler
mailing list