commit | 9d5af77a9538be2cb4fce2fc4601359bb41d3976 | [log] [tgz] |
---|---|---|
author | Albert Astals Cid <aacid@kde.org> | Sat Aug 24 00:59:09 2019 +0200 |
committer | Albert Astals Cid <aacid@kde.org> | Sat Aug 24 00:59:09 2019 +0200 |
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
diff --git a/poppler/Decrypt.cc b/poppler/Decrypt.cc index 6d9c14f..cc343a5 100644 --- a/poppler/Decrypt.cc +++ b/poppler/Decrypt.cc
@@ -355,6 +355,7 @@ } charactersRead = 0; + nextCharBuff = EOF; autoDelete = true; }