[poppler] poppler/Function.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun Nov 15 21:17:37 UTC 2020
poppler/Function.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 72e7e1e826f64d72a2a47e1abd8bccceff5e0a67
Author: Albert Astals Cid <aacid at kde.org>
Date: Sun Nov 15 22:10:44 2020 +0100
SampledFunction: Initialize cacheOut
On some broken files m is 0 so every time we call
SampledFunction::transform we just return cachedOut, but it was never
initialized. We can solve it other ways but seems seems the least
expensive
diff --git a/poppler/Function.cc b/poppler/Function.cc
index b220341d..4b99178e 100644
--- a/poppler/Function.cc
+++ b/poppler/Function.cc
@@ -208,7 +208,7 @@ void IdentityFunction::transform(const double *in, double *out) const
// SampledFunction
//------------------------------------------------------------------------
-SampledFunction::SampledFunction(Object *funcObj, Dict *dict)
+SampledFunction::SampledFunction(Object *funcObj, Dict *dict) : cacheOut {}
{
Stream *str;
int sampleBits;
More information about the poppler
mailing list