summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_expintfunc.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-04-19 16:53:32 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-19 16:53:32 +0000
commit93358c23262e27ead528ac60607329ba0ea0a49a (patch)
tree352c9aec26cb5d1bc18ef77debedce3328cbaed9 /core/fpdfapi/page/cpdf_expintfunc.h
parent54e6da1ee793f436341dfcdc4e0c26b0658d1928 (diff)
downloadpdfium-93358c23262e27ead528ac60607329ba0ea0a49a.tar.xz
Do a bit more validation in CPDF_ExpIntFunc::v_Init().
Also do some cleanup and use FX_SAFE_UINT32. Change-Id: I8e9fc49fb768cfc4b13b164c1dcf51b8ca99ec0b Reviewed-on: https://pdfium-review.googlesource.com/30934 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_expintfunc.h')
-rw-r--r--core/fpdfapi/page/cpdf_expintfunc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fpdfapi/page/cpdf_expintfunc.h b/core/fpdfapi/page/cpdf_expintfunc.h
index 7950c3dfd0..3ff6a7eb22 100644
--- a/core/fpdfapi/page/cpdf_expintfunc.h
+++ b/core/fpdfapi/page/cpdf_expintfunc.h
@@ -20,10 +20,10 @@ class CPDF_ExpIntFunc : public CPDF_Function {
bool v_Init(CPDF_Object* pObj, std::set<CPDF_Object*>* pVisited) override;
bool v_Call(const float* inputs, float* results) const override;
- uint32_t m_nOrigOutputs;
- float m_Exponent;
- float* m_pBeginValues;
- float* m_pEndValues;
+ uint32_t m_nOrigOutputs = 0;
+ float m_Exponent = 0.0f;
+ float* m_pBeginValues = nullptr;
+ float* m_pEndValues = nullptr;
};
#endif // CORE_FPDFAPI_PAGE_CPDF_EXPINTFUNC_H_