[poppler] poppler/SecurityHandler.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Jan 18 10:39:47 UTC 2020


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

New commits:
commit e249d8965c0f39bd4dcb882048535a5272f66566
Author: Albert Astals Cid <aacid at kde.org>
Date:   Sat Jan 18 11:35:25 2020 +0100

    Initialize StandardSecurityHandler::encAlgorithm
    
    Fixes uninitialized memory read on broken files

diff --git a/poppler/SecurityHandler.cc b/poppler/SecurityHandler.cc
index eea78117..8ac03a00 100644
--- a/poppler/SecurityHandler.cc
+++ b/poppler/SecurityHandler.cc
@@ -125,6 +125,7 @@ StandardSecurityHandler::StandardSecurityHandler(PDFDoc *docA,
   ownerEnc = nullptr;
   userEnc = nullptr;
   fileKeyLength = 0;
+  encAlgorithm = cryptNone;
 
   Object versionObj = encryptDictA->dictLookup("V");
   Object revisionObj = encryptDictA->dictLookup("R");


More information about the poppler mailing list