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

New commits:
commit 599e28433268ceaa933cf2a2492c81da4418e207
Author: Albert Astals Cid <[email protected]>
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;
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to