[poppler] poppler/Stream.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue May 22 16:27:59 UTC 2018


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

New commits:
commit 0c0c368fed70c1db64ce04b135fd5b060a1f0653
Author: Albert Astals Cid <aacid at kde.org>
Date:   Tue May 22 18:26:29 2018 +0200

    LZWStream::clearTable: init newChar to 0
    
    it should not be needed because on well formed streams it will be properly initialized in processNextCode but
    this solves an uninitialized memory use on malformed documents
    
    fixes oss-fuzz/8457

diff --git a/poppler/Stream.cc b/poppler/Stream.cc
index 15a6a9f9..4f075c12 100644
--- a/poppler/Stream.cc
+++ b/poppler/Stream.cc
@@ -1435,6 +1435,7 @@ void LZWStream::clearTable() {
   nextBits = 9;
   seqIndex = seqLength = 0;
   first = gTrue;
+  newChar = 0;
 }
 
 int LZWStream::getCode() {


More information about the poppler mailing list