[poppler] poppler/SecurityHandler.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue May 22 18:36:55 UTC 2018


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

New commits:
commit bf03344ad26b1227b5052420feabe062441c02ed
Author: Albert Astals Cid <aacid at kde.org>
Date:   Tue May 22 20:36:05 2018 +0200

    StandardSecurityHandler::isUnencrypted: Fix uninitialized memory use
    
    fixes oss-fuzz/8426

diff --git a/poppler/SecurityHandler.cc b/poppler/SecurityHandler.cc
index a643f45f..bdfd89f8 100644
--- a/poppler/SecurityHandler.cc
+++ b/poppler/SecurityHandler.cc
@@ -315,6 +315,9 @@ StandardSecurityHandler::~StandardSecurityHandler() {
 }
 
 GBool StandardSecurityHandler::isUnencrypted() {
+  if (!ok) {
+    return gTrue;
+  }
   return encVersion == -1 && encRevision == -1;
 }
 


More information about the poppler mailing list