diff options
author | JUN FANG <jun_fang@foxitsoftware.com> | 2015-02-12 04:38:03 -0800 |
---|---|---|
committer | JUN FANG <jun_fang@foxitsoftware.com> | 2015-02-12 05:06:48 -0800 |
commit | 92e856b09dd2fcf6cf46b07b1496053eb0e67851 (patch) | |
tree | a4c99261f6a66bb8fd15dabaccbadc0c3e1c8690 /core | |
parent | 0e8141a8d3d2c1ed51561815ac26e5bba801a629 (diff) | |
download | pdfium-92e856b09dd2fcf6cf46b07b1496053eb0e67851.tar.xz |
Merge to XFA: Fix an error 'Use-of-uninitialized-value in CPDF_Function::Call'
This issue was introduced in https://codereview.chromium.org/886953002/.
BUG=454280
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/869343008
Diffstat (limited to 'core')
-rw-r--r-- | core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp index b112540356..ae912ac50f 100644 --- a/core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp +++ b/core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp @@ -583,10 +583,10 @@ FX_BOOL CPDF_SampledFunc::v_Call(FX_FLOAT* inputs, FX_FLOAT* results) const } } else { FX_SAFE_INT32 bitpos2 = blocksize[i]; - bitpos2 += 1; - bitpos2 *= m_nBitsPerSample; + bitpos2 += pos; bitpos2 *= m_nOutputs; - bitpos2 += bitpos.ValueOrDie(); + bitpos2 += j; + bitpos2 *= m_nBitsPerSample; if (!bitpos2.IsValid()) { return FALSE; } |