From 41e06e74cf9f483c83a042cffcd90da1891e4cbe Mon Sep 17 00:00:00 2001 From: foxit Date: Thu, 10 Jul 2014 12:06:13 -0700 Subject: Fix uninitialized triangle BUG=387835 R=palmer@chromium.org Review URL: https://codereview.chromium.org/381173002 --- core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp b/core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp index 0bf6311b19..926ce8883b 100644 --- a/core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp +++ b/core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp @@ -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); -- cgit v1.2.3