summaryrefslogtreecommitdiff
authorAlbert Astals Cid <aacid@kde.org>2010-09-21 17:55:51 (GMT)
committer Albert Astals Cid <aacid@kde.org>2010-09-21 17:55:51 (GMT)
commita2dab0238a69240dad08eca2083110b52ce488b7 (patch) (side-by-side diff)
treee5da3313f6187684d9255299086538ea206141cb
parent39d140bfc0b8239bdd96d6a55842034ae5c05473 (diff)
downloadpoppler-a2dab0238a69240dad08eca2083110b52ce488b7.zip
poppler-a2dab0238a69240dad08eca2083110b52ce488b7.tar.gz
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
Diffstat (more/less context) (ignore whitespace changes)
-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() {