From 17dd07aa35dfc6606ac8351c5426c2bc8100d66f Mon Sep 17 00:00:00 2001 From: foxit Date: Mon, 7 Jul 2014 13:55:44 -0700 Subject: Fix uninitialized RGB in translating scanline BUG=387841 R=palmer@chromium.org Review URL: https://codereview.chromium.org/354363003 --- core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp b/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp index fa8827c5d4..98efec16b9 100644 --- a/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp +++ b/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp @@ -992,7 +992,7 @@ void CPDF_DIBSource::TranslateScanline24bpp(FX_LPBYTE dest_scan, FX_LPCBYTE src_ } CFX_FixedBufGrow color_values1(m_nComponents); FX_FLOAT* color_values = color_values1; - FX_FLOAT R, G, B; + FX_FLOAT R = 0.0f, G = 0.0f, B = 0.0f; if (m_bpc == 8) { int src_byte_pos = 0; int dest_byte_pos = 0; -- cgit v1.2.3