summaryrefslogtreecommitdiff
path: root/core/src/fpdfapi
diff options
context:
space:
mode:
authorJun Fang <jun_fang@foxitsoftware.com>2014-07-14 20:57:18 -0700
committerJun Fang <jun_fang@foxitsoftware.com>2014-07-14 20:57:18 -0700
commitf86d7d6bd4be27a0aab69c240a6e6a51befca598 (patch)
tree66f4a8bf8448fe4efcf3a57e9c9fce60ddcfdb41 /core/src/fpdfapi
parent1c8d196f02d32f75e32d189a6ac92ca13124895c (diff)
downloadpdfium-f86d7d6bd4be27a0aab69c240a6e6a51befca598.tar.xz
Fix uninitialized coords in _DrawCoonPatchMeshes
BUG=391470 R=palmer@chromium.org Review URL: https://codereview.chromium.org/384593002
Diffstat (limited to 'core/src/fpdfapi')
-rw-r--r--core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp b/core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp
index edc677736b..ba0ca84ec4 100644
--- a/core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp
+++ b/core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp
@@ -690,6 +690,11 @@ static void _DrawCoonPatchMeshes(FX_BOOL bTensor, CFX_DIBitmap* pBitmap, CFX_Aff
pPoints[i].m_Flag = FXPT_BEZIERTO;
}
CFX_FloatPoint coords[16];
+ for (int i = 0; i < 16; i ++)
+ {
+ coords[i].Set(0.0f, 0.0f);
+ }
+
int point_count = bTensor ? 16 : 12;
while (!stream.m_BitStream.IsEOF()) {
FX_DWORD flag = stream.GetFlag();