[poppler] 2 commits - poppler/Catalog.cc poppler/Stream.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Sep 29 12:04:26 PDT 2010


 poppler/Catalog.cc |    1 +
 poppler/Stream.cc  |    3 +++
 2 files changed, 4 insertions(+)

New commits:
commit e3d3944c1988343704e3ba3a5d60609719466afb
Author: Tomas Hoger <thoger at redhat.com>
Date:   Wed Sep 29 20:03:45 2010 +0100

    Fix uninitialized uses on DCTScanInfo

diff --git a/poppler/Stream.cc b/poppler/Stream.cc
index 0fb3884..c5a06f3 100644
--- a/poppler/Stream.cc
+++ b/poppler/Stream.cc
@@ -21,6 +21,7 @@
 // Copyright (C) 2009 Glenn Ganz <glenn.ganz at uptime.ch>
 // Copyright (C) 2009 Stefan Thomas <thomas at eload24.com>
 // Copyright (C) 2010 Hib Eris <hib at hiberis.nl>
+// Copyright (C) 2010 Tomas Hoger <thoger at redhat.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
@@ -3298,6 +3299,8 @@ GBool DCTStream::readScanInfo() {
   interleaved = scanInfo.numComps == numComps;
   for (j = 0; j < numComps; ++j) {
     scanInfo.comp[j] = gFalse;
+    scanInfo.dcHuffTable[j] = 0;
+    scanInfo.acHuffTable[j] = 0;
   }
   for (i = 0; i < scanInfo.numComps; ++i) {
     id = str->getChar();
commit f380647f09d88339c936184bbe86c70c0d47de4b
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Sep 29 20:02:10 2010 +0100

    Free names

diff --git a/poppler/Catalog.cc b/poppler/Catalog.cc
index dbf9af2..048bfb6 100644
--- a/poppler/Catalog.cc
+++ b/poppler/Catalog.cc
@@ -172,6 +172,7 @@ Catalog::~Catalog() {
     gfree(pages);
     gfree(pageRefs);
   }
+  names.free();
   dests.free();
   delete destNameTree;
   delete embeddedFileNameTree;


More information about the poppler mailing list