[poppler] poppler/FlateStream.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Nov 5 10:09:14 UTC 2021
poppler/FlateStream.cc | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 6d72d8242cafe92d5c0c6a04b51f7e85108c450a
Author: Albert Astals Cid <aacid at kde.org>
Date: Fri Nov 5 10:50:11 2021 +0100
Fix crash on broken files when using non-default ENABLE_ZLIB_UNCOMPRESS
Fixes issue #393
diff --git a/poppler/FlateStream.cc b/poppler/FlateStream.cc
index 6d49882d..a97b687b 100644
--- a/poppler/FlateStream.cc
+++ b/poppler/FlateStream.cc
@@ -23,6 +23,10 @@ FlateStream::FlateStream(Stream *strA, int predictor, int columns, int colors, i
{
if (predictor != 1) {
pred = new StreamPredictor(this, predictor, columns, colors, bits);
+ if (!pred->isOk()) {
+ delete pred;
+ pred = nullptr;
+ }
} else {
pred = NULL;
}
More information about the poppler
mailing list