diff options
author | Albert Astals Cid <aacid@kde.org> | 2020-01-18 11:35:25 +0100 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2020-01-18 11:35:25 +0100 |
commit | e249d8965c0f39bd4dcb882048535a5272f66566 (patch) | |
tree | 86901f36c5573ab907d91105735065f514f38fcf | |
parent | 1f82b0a455659a41b321c9a73c82a38fe4318159 (diff) |
Initialize StandardSecurityHandler::encAlgorithm
Fixes uninitialized memory read on broken files
-rw-r--r-- | poppler/SecurityHandler.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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"); |