From 9706e28657ff7ea52aa69d9efb3f91d0cfaee70b Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Tue, 21 Sep 2010 19:09:37 +0100 Subject: Fix crash when idx is out of range Found thanks to PDF provided by Joel Voss of Leviathan Security Group --- poppler/Function.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } } -- cgit v1.2.3