summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoxit <jun_fang@foxitsoftware.com>2014-07-07 13:55:44 -0700
committerfoxit <jun_fang@foxitsoftware.com>2014-07-07 13:55:44 -0700
commit17dd07aa35dfc6606ac8351c5426c2bc8100d66f (patch)
tree04ed5b2addce010284e806360889b709ee91ac51
parentab4221c772b4ccf535849062bb8f06c73b94548f (diff)
downloadpdfium-17dd07aa35dfc6606ac8351c5426c2bc8100d66f.tar.xz
Fix uninitialized RGB in translating scanline
BUG=387841 R=palmer@chromium.org Review URL: https://codereview.chromium.org/354363003
-rw-r--r--core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp2
1 files changed, 1 insertions, 1 deletions
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<FX_FLOAT, 16> 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;