poppler/JBIG2Stream.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit cab0cf028a192772dcb5c3f4aefa0a421e73e9e7 Author: Albert Astals Cid <[email protected]> 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 <[email protected]> // Copyright (C) 2006-2010 Albert Astals Cid <[email protected]> // Copyright (C) 2009 David Benjamin <[email protected]> +// Copyright (C) 2011 Edward Jiang <[email protected]> // // 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) { _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
