[poppler] poppler/JBIG2Stream.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Sun May 27 07:48:51 UTC 2018


 poppler/JBIG2Stream.cc |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 96e7bc19ffcaf46d4cb69660ed040c09d46815d6
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sun May 27 09:42:24 2018 +0200

    JBIG2Stream::readTextRegion: Initialize a few variables
    
    So if the stream is broken we don't use uninitialized variables
    
    fixes oss-fuzz/8547

diff --git a/poppler/JBIG2Stream.cc b/poppler/JBIG2Stream.cc
index 654f6405..fb0407a5 100644
--- a/poppler/JBIG2Stream.cc
+++ b/poppler/JBIG2Stream.cc
@@ -2337,8 +2337,8 @@ JBIG2Bitmap *JBIG2Stream::readTextRegion(GBool huff, GBool refine,
   JBIG2Bitmap *bitmap;
   JBIG2Bitmap *symbolBitmap;
   Guint strips;
-  int t, dt, tt, s, ds, sFirst, j;
-  int rdw, rdh, rdx, rdy, ri, refDX, refDY, bmSize;
+  int t = 0, dt = 0, tt, s, ds, sFirst, j;
+  int rdw, rdh, rdx, rdy, ri = 0, refDX, refDY, bmSize;
   Guint symID, inst, bw, bh;
 
   strips = 1 << logStrips;


More information about the poppler mailing list