diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-10-15 18:18:18 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-15 18:18:18 +0000 |
commit | 6793dad3038a6ed4a2bd68aeb1833c00e7413cf3 (patch) | |
tree | 53b83213cea6e2f381ad4715f5f9c26f87235f37 /core/fxcodec/codec/ccodec_progressivedecoder.h | |
parent | bc75f62774a31ca94188e1910624bac246d550f7 (diff) | |
download | pdfium-6793dad3038a6ed4a2bd68aeb1833c00e7413cf3.tar.xz |
Stop shadowing codec memory size with CCodec_ProgressiveDecoder::m_SrcSize
This is a remnant from the old implementation which can get out
of sync with the actual value, esp. in the fuzzers where buffers
are shorter-lived.
Bug: 895009
Change-Id: Ibf16dad58dd750c961e3b446f12cb2197004dbb4
Reviewed-on: https://pdfium-review.googlesource.com/c/44010
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcodec/codec/ccodec_progressivedecoder.h')
-rw-r--r-- | core/fxcodec/codec/ccodec_progressivedecoder.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/fxcodec/codec/ccodec_progressivedecoder.h b/core/fxcodec/codec/ccodec_progressivedecoder.h index d0419f8268..1c764cbb4b 100644 --- a/core/fxcodec/codec/ccodec_progressivedecoder.h +++ b/core/fxcodec/codec/ccodec_progressivedecoder.h @@ -268,7 +268,6 @@ class CCodec_ProgressiveDecoder : std::unique_ptr<CodecModuleIface::Context> m_pTiffContext; #endif // PDF_ENABLE_XFA_TIFF uint32_t m_offSet = 0; - uint32_t m_SrcSize = 0; int m_ScanlineSize = 0; CFXCODEC_WeightTable m_WeightHorz; CFXCODEC_VertTable m_WeightVert; |