summaryrefslogtreecommitdiff
path: root/core/src/fpdfapi/fpdf_render
diff options
context:
space:
mode:
authorfoxit <jun_fang@foxitsoftware.com>2014-07-10 12:06:13 -0700
committerfoxit <jun_fang@foxitsoftware.com>2014-07-10 12:06:13 -0700
commit41e06e74cf9f483c83a042cffcd90da1891e4cbe (patch)
tree8f8c607ae69d8b9b43a6f4c4d0517250fc061765 /core/src/fpdfapi/fpdf_render
parentd5a0e7ac0a8169220b32cd8525b6cc5a6e563af3 (diff)
downloadpdfium-41e06e74cf9f483c83a042cffcd90da1891e4cbe.tar.xz
Fix uninitialized triangle
BUG=387835 R=palmer@chromium.org Review URL: https://codereview.chromium.org/381173002
Diffstat (limited to 'core/src/fpdfapi/fpdf_render')
-rw-r--r--core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp2
1 files changed, 2 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 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);