diff options
author | Albert Astals Cid <aacid@kde.org> | 2010-09-21 18:55:51 +0100 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2010-09-21 18:55:51 +0100 |
commit | a2dab0238a69240dad08eca2083110b52ce488b7 (patch) | |
tree | e5da3313f6187684d9255299086538ea206141cb | |
parent | 39d140bfc0b8239bdd96d6a55842034ae5c05473 (diff) |
Initialize properly charactersRead
It is possible that there are calls to getPos before reset
Found thanks to PDF provided by Joel Voss of Leviathan Security Group
-rw-r--r-- | poppler/Decrypt.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/poppler/Decrypt.cc b/poppler/Decrypt.cc index ca294d39..128dbb9a 100644 --- a/poppler/Decrypt.cc +++ b/poppler/Decrypt.cc @@ -229,6 +229,8 @@ DecryptStream::DecryptStream(Stream *strA, Guchar *fileKey, if ((objKeyLength = keyLength + 5) > 16) { objKeyLength = 16; } + + charactersRead = 0; } DecryptStream::~DecryptStream() { |