[poppler] poppler/Decrypt.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Aug 24 09:50:30 UTC 2019
poppler/Decrypt.cc | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 9d5af77a9538be2cb4fce2fc4601359bb41d3976
Author: Albert Astals Cid <aacid at kde.org>
Date: Sat Aug 24 00:59:09 2019 +0200
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 6d9c14f2..cc343a55 100644
--- a/poppler/Decrypt.cc
+++ b/poppler/Decrypt.cc
@@ -355,6 +355,7 @@ BaseCryptStream::BaseCryptStream(Stream *strA, const unsigned char *fileKey, Cry
}
charactersRead = 0;
+ nextCharBuff = EOF;
autoDelete = true;
}
More information about the poppler
mailing list