[poppler] poppler/JBIG2Stream.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Tue Jun 5 18:12:00 UTC 2018
poppler/JBIG2Stream.cc | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 599e28433268ceaa933cf2a2492c81da4418e207
Author: Albert Astals Cid <aacid at kde.org>
Date: Tue Jun 5 20:11:19 2018 +0200
JBIG2Stream::readSymbolDictSeg: Fix potential uninitialized memory read
fixes oss-fuzz/8748
diff --git a/poppler/JBIG2Stream.cc b/poppler/JBIG2Stream.cc
index 5982ce8d..2ed787e0 100644
--- a/poppler/JBIG2Stream.cc
+++ b/poppler/JBIG2Stream.cc
@@ -1896,6 +1896,7 @@ GBool JBIG2Stream::readSymbolDictSeg(Guint segNum, Guint length,
}
for (k = 0; k < (Guint)bmSize; ++k) {
if ((c = curStr->getChar()) == EOF) {
+ memset(p, 0, bmSize - k);
break;
}
*p++ = (Guchar)c;
More information about the poppler
mailing list