diff options
author | foxit <jun_fang@foxitsoftware.com> | 2014-06-20 16:48:43 -0700 |
---|---|---|
committer | foxit <jun_fang@foxitsoftware.com> | 2014-06-20 16:48:43 -0700 |
commit | 3e4b1bc1ac4eb8372a90f95edd69131e54240976 (patch) | |
tree | 3e73c6a08911fec6621a43907713542c2d808ed2 /core/src/fxcodec/codec/codec_int.h | |
parent | d9713f05fdcecab8428d39034c6b84cd0bbd2920 (diff) | |
download | pdfium-3e4b1bc1ac4eb8372a90f95edd69131e54240976.tar.xz |
Stack-buffer-overflow in IccLib_Translate
BUG=382240
R=palmer@chromium.org
Review URL: https://codereview.chromium.org/332143002
Diffstat (limited to 'core/src/fxcodec/codec/codec_int.h')
-rw-r--r-- | core/src/fxcodec/codec/codec_int.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/fxcodec/codec/codec_int.h b/core/src/fxcodec/codec/codec_int.h index 638d96db85..47f2c8e1fe 100644 --- a/core/src/fxcodec/codec/codec_int.h +++ b/core/src/fxcodec/codec/codec_int.h @@ -172,10 +172,12 @@ public: virtual void DestroyTransform(FX_LPVOID pTransform); virtual void Translate(FX_LPVOID pTransform, FX_FLOAT* pSrcValues, FX_FLOAT* pDestValues); virtual void TranslateScanline(FX_LPVOID pTransform, FX_LPBYTE pDest, FX_LPCBYTE pSrc, int pixels); + virtual void SetComponents(FX_DWORD nComponents) {m_nComponents = nComponents;} virtual ~CCodec_IccModule(); protected: CFX_MapByteStringToPtr m_MapTranform; CFX_MapByteStringToPtr m_MapProfile; + FX_DWORD m_nComponents; typedef enum { Icc_CLASS_INPUT = 0, Icc_CLASS_OUTPUT, |