diff options
author | Albert Astals Cid <aacid@kde.org> | 2019-08-24 00:59:09 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2019-08-24 00:59:09 +0200 |
commit | 9d5af77a9538be2cb4fce2fc4601359bb41d3976 (patch) | |
tree | ae5b0f3ac5ce9487847948cd316b3f65d03f69bd | |
parent | d2a37632661d1c8c29fa28a6e1a5d812508f4ea3 (diff) |
Initialize BaseCryptStream::nextCharBuff on construction
Otherwise if we construct a DecryptStream and next we call lookupChar it
would use un-initialized memory
-rw-r--r-- | poppler/Decrypt.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/poppler/Decrypt.cc b/poppler/Decrypt.cc index 6d9c14f2..cc343a55 100644 --- a/poppler/Decrypt.cc +++ b/poppler/Decrypt.cc @@ -355,6 +355,7 @@ BaseCryptStream::BaseCryptStream(Stream *strA, const unsigned char *fileKey, Cry } charactersRead = 0; + nextCharBuff = EOF; autoDelete = true; } |