[poppler] poppler/JBIG2Stream.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Wed May 23 23:14:02 UTC 2018


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

New commits:
commit 76820f5ab932a9ed18913bc7d1a452ddf060c133
Author: Albert Astals Cid <aacid at kde.org>
Date:   Thu May 24 01:12:07 2018 +0200

    JBIG2Stream::readPageInfoSeg: Fix memory leak on malformed documents
    
    fixes oss-fuzz/8463

diff --git a/poppler/JBIG2Stream.cc b/poppler/JBIG2Stream.cc
index ac7e7382..0ed1e644 100644
--- a/poppler/JBIG2Stream.cc
+++ b/poppler/JBIG2Stream.cc
@@ -4023,6 +4023,7 @@ void JBIG2Stream::readPageInfoSeg(Guint length) {
   } else {
     curPageH = pageH;
   }
+  delete pageBitmap;
   pageBitmap = new JBIG2Bitmap(0, pageW, curPageH);
 
   if (!pageBitmap->isOk()) {


More information about the poppler mailing list