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 19:23:50 +0100 |
commit | bf4f774f2d0e924224895525a7f8d1966ec8af51 (patch) | |
tree | 39730755a5d2b124050118c7aff098469fd41038 | |
parent | d04ab9d78a0fba07464e43ccdec80b05339fd08d (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() { |