[Poppler-bugs] [Bug 30228] poppler: use of uninitialized DCTScanInfo dcHuffTable / acHuffTable values

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 28 12:40:57 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=30228

--- Comment #3 from Tomas Hoger <thoger at redhat.com> 2010-09-28 12:40:56 PDT ---
I believe something like this should do:

diff --git a/poppler/Stream.cc b/poppler/Stream.cc
index 988f99a..399131b 100644
--- a/poppler/Stream.cc
+++ b/poppler/Stream.cc
@@ -3297,6 +3297,7 @@ GBool DCTStream::readScanInfo() {
   interleaved = scanInfo.numComps == numComps;
   for (j = 0; j < numComps; ++j) {
     scanInfo.comp[j] = gFalse;
+    scanInfo.dcHuffTable[j] = scanInfo.acHuffTable[j] = 0;
   }
   for (i = 0; i < scanInfo.numComps; ++i) {
     id = str->getChar();

This resolves the crash on the attached reproducer.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Poppler-bugs mailing list