summaryrefslogtreecommitdiff
authorAlbert Astals Cid <aacid@kde.org>2010-09-21 18:09:37 (GMT)
committer Albert Astals Cid <aacid@kde.org>2010-09-21 18:09:37 (GMT)
commit9706e28657ff7ea52aa69d9efb3f91d0cfaee70b (patch) (side-by-side diff)
tree583b49476854c80c670000a1f02db2b8b21fb689
parent26a5817ffec9f05ac63db6c5cd5b1f0871d271c7 (diff)
downloadpoppler-9706e28657ff7ea52aa69d9efb3f91d0cfaee70b.zip
poppler-9706e28657ff7ea52aa69d9efb3f91d0cfaee70b.tar.gz
Fix crash when idx is out of range
Found thanks to PDF provided by Joel Voss of Leviathan Security Group
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--poppler/Function.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/poppler/Function.cc b/poppler/Function.cc
index ea35b7b..e7383fd 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
}
}