poppler/Decrypt.cc | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 9d5af77a9538be2cb4fce2fc4601359bb41d3976
Author: Albert Astals Cid <[email protected]>
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;
}
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler