Fix uninitialized coords in _DrawCoonPatchMeshes
authorJun Fang <jun_fang@foxitsoftware.com>
Tue, 15 Jul 2014 03:57:18 +0000 (20:57 -0700)
committerJun Fang <jun_fang@foxitsoftware.com>
Tue, 15 Jul 2014 03:57:18 +0000 (20:57 -0700)
BUG=391470
R=palmer@chromium.org

Review URL: https://codereview.chromium.org/384593002

core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp

index edc6777..ba0ca84 100644 (file)
@@ -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();