[poppler] Branch 'poppler-0.16' - poppler/JBIG2Stream.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Fri Feb 11 11:41:34 PST 2011
poppler/JBIG2Stream.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 2f64af93bbd471c26d9893b4cf1502dde9e33af3
Author: Albert Astals Cid <aacid at kde.org>
Date: Fri Feb 11 19:42:34 2011 +0000
Do not infinite loop in some broken files
diff --git a/poppler/JBIG2Stream.cc b/poppler/JBIG2Stream.cc
index f13f662..bfb1994 100644
--- a/poppler/JBIG2Stream.cc
+++ b/poppler/JBIG2Stream.cc
@@ -17,6 +17,7 @@
// Copyright (C) 2006 Paul Walmsley <paul at booyaka.com>
// Copyright (C) 2006-2010 Albert Astals Cid <aacid at kde.org>
// Copyright (C) 2009 David Benjamin <davidben at mit.edu>
+// Copyright (C) 2011 Edward Jiang <ejiang at google.com>
//
// To see a description of the changes please see the Changelog file that
// came with your tarball or type make ChangeLog if you are building from git
@@ -2288,7 +2289,7 @@ JBIG2Bitmap *JBIG2Stream::readTextRegion(GBool huff, GBool refine,
s = sFirst;
// read the instances
- while (1) {
+ while (inst < numInstances) {
// T value
if (strips == 1) {
More information about the poppler
mailing list