[poppler] Branch 'xpdf303merge' - poppler/JBIG2Stream.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Mon Sep 5 10:29:59 PDT 2011


 poppler/JBIG2Stream.cc |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 112154567ebcab63959294533b00075d6ca6ea65
Author: Albert Astals Cid <aacid at kde.org>
Date:   Mon Sep 5 19:33:27 2011 +0200

    xpdf303: Initialize to NULL

diff --git a/poppler/JBIG2Stream.cc b/poppler/JBIG2Stream.cc
index 0c40950..f538dc6 100644
--- a/poppler/JBIG2Stream.cc
+++ b/poppler/JBIG2Stream.cc
@@ -1052,9 +1052,14 @@ private:
 JBIG2SymbolDict::JBIG2SymbolDict(Guint segNumA, Guint sizeA):
   JBIG2Segment(segNumA)
 {
+  Guint i;
+
   size = sizeA;
   bitmaps = (JBIG2Bitmap **)gmallocn_checkoverflow(size, sizeof(JBIG2Bitmap *));
   if (!bitmaps) size = 0;
+  for (i = 0; i < size; ++i) {
+    bitmaps[i] = NULL;
+  }
   genericRegionStats = NULL;
   refinementRegionStats = NULL;
 }


More information about the poppler mailing list