Fix uninitialized triangle
authorfoxit <jun_fang@foxitsoftware.com>
Thu, 10 Jul 2014 19:06:13 +0000 (12:06 -0700)
committerfoxit <jun_fang@foxitsoftware.com>
Thu, 10 Jul 2014 19:06:13 +0000 (12:06 -0700)
BUG=387835
R=palmer@chromium.org

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

core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp

index 0bf6311..926ce88 100644 (file)
@@ -389,6 +389,8 @@ static void _DrawFreeGouraudShading(CFX_DIBitmap* pBitmap, CFX_AffineMatrix* pOb
         return;
     }
     CPDF_MeshVertex triangle[3];
+    FXSYS_memset32(triangle, 0, sizeof(triangle));
+
     while (!stream.m_BitStream.IsEOF()) {
         CPDF_MeshVertex vertex;
         FX_DWORD flag = stream.GetVertex(vertex, pObject2Bitmap);