summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2010-09-21 19:09:37 +0100
committerAlbert Astals Cid <aacid@kde.org>2010-09-21 19:09:37 +0100
commit9706e28657ff7ea52aa69d9efb3f91d0cfaee70b (patch)
tree583b49476854c80c670000a1f02db2b8b21fb689
parent26a5817ffec9f05ac63db6c5cd5b1f0871d271c7 (diff)
Fix crash when idx is out of range
Found thanks to PDF provided by Joel Voss of Leviathan Security Group
-rw-r--r--poppler/Function.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/Function.cc b/poppler/Function.cc
index ea35b7b8..e7383fd1 100644
--- a/poppler/Function.cc
+++ b/poppler/Function.cc
@@ -425,7 +425,7 @@ void SampledFunction::transform(double *in, double *out) {
if (likely(idx >= 0 && idx < nSamples)) {
sBuf[j] = samples[idx];
} else {
- sBuf[j] = 0;
+ sBuf[j] = 0; // TODO Investigate if this is what Adobe does
}
}