[poppler] poppler/JBIG2Stream.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Dec 27 16:54:45 UTC 2018


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

New commits:
commit 653d743771ed778e46be8c14cccf4fb7e2205b74
Author: Albert Astals Cid <aacid at kde.org>
Date:   Thu Dec 27 17:53:53 2018 +0100

    JBIG2Stream: Fix uninitialized memory read on broken files
    
    fixes oss-fuzz/12243

diff --git a/poppler/JBIG2Stream.cc b/poppler/JBIG2Stream.cc
index b4e55c94..2c12f7b6 100644
--- a/poppler/JBIG2Stream.cc
+++ b/poppler/JBIG2Stream.cc
@@ -2023,7 +2023,7 @@ void JBIG2Stream::readTextRegionSeg(unsigned int segNum, bool imm,
   unsigned int numInstances, numSyms, symCodeLen;
   int atx[2], aty[2];
   unsigned int i, k, kk;
-  int j;
+  int j = 0;
 
   // region segment info field
   if (!readULong(&w) || !readULong(&h) ||


More information about the poppler mailing list