summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2010-09-21 17:55:51 (GMT)
committerAlbert Astals Cid <aacid@kde.org>2010-09-21 17:55:51 (GMT)
commita2dab0238a69240dad08eca2083110b52ce488b7 (patch)
treee5da3313f6187684d9255299086538ea206141cb
parent39d140bfc0b8239bdd96d6a55842034ae5c05473 (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.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/poppler/Decrypt.cc b/poppler/Decrypt.cc
index ca294d3..128dbb9 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() {