[poppler] poppler/JBIG2Stream.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Thu May 24 11:06:37 UTC 2018
poppler/JBIG2Stream.cc | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit f279778fe0aca610cdecb70d0a714bbaa08b0d22
Author: Albert Astals Cid <aacid at kde.org>
Date: Thu May 24 13:06:00 2018 +0200
JBIG2Stream::readSymbolDictSeg: Fix potential uninitialized memory use
fixes oss-fuzz/8468
diff --git a/poppler/JBIG2Stream.cc b/poppler/JBIG2Stream.cc
index 0ed1e644..654f6405 100644
--- a/poppler/JBIG2Stream.cc
+++ b/poppler/JBIG2Stream.cc
@@ -1930,6 +1930,8 @@ GBool JBIG2Stream::readSymbolDictSeg(Guint segNum, Guint length,
// exported symbol list
i = j = 0;
ex = gFalse;
+ run = 0; // initialize it once in case the first decodeInt fails
+ // we do not want to use uninitialized memory
while (i < numInputSyms + numNewSyms) {
if (huff) {
huffDecoder->decodeInt(&run, huffTableA);
More information about the poppler
mailing list