fix two uninitialized reads
authorJohn Abd-El-Malek <jam@chromium.org>
Thu, 5 Jun 2014 18:12:52 +0000 (11:12 -0700)
committerJohn Abd-El-Malek <jam@chromium.org>
Thu, 5 Jun 2014 18:12:52 +0000 (11:12 -0700)
https://code.google.com/p/pdfium/issues/detail?id=9
https://code.google.com/p/pdfium/issues/detail?id=10

BUG=
R=bo_xu@foxitsoftware.com

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

AUTHORS
core/src/fxcodec/codec/fx_codec_jpeg.cpp
core/src/fxge/fx_freetype/fxft2.5.01/src/psaux/psconv.c

diff --git a/AUTHORS b/AUTHORS
index bf6d071..b7eefe1 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -12,6 +12,7 @@ Andrey Khalyavin <halyavin@chromium.org>
 Finnur Thorarinsson <finnur@chromium.org>
 John Abd-El-Malek <jam@chromium.org>
 Julien Tinnes <jln@chromium.org>
+Kostya Serebryany <kcc@chromium.org>
 Lei Zhang <thestig@chromium.org>
 Lucas Nihlen <luken@chromium.org>
 Matt Giuca <mgiuca@chromium.org>
index b0a6bd4..aae3e24 100644 (file)
@@ -282,6 +282,7 @@ static FX_BOOL _JpegLoadInfo(FX_LPCBYTE src_buf, FX_DWORD src_size, int& width,
     jerr.output_message = _error_do_nothing;
     jerr.format_message = _error_do_nothing2;
     jerr.reset_error_mgr = _error_do_nothing;
+    jerr.trace_level = 0;
     cinfo.err = &jerr;
     jmp_buf mark;
     cinfo.client_data = &mark;
index 22e2f7d..c13d41b 100644 (file)
     FT_INT64  integral = 0;
     FT_INT64  decimal = 0;
 #else
-       FT_Long integral;
+       FT_Long integral = 0;
        FT_Long decimal = 0;
        FT_Int temp0 = 65536;
        FT_Int temp1 = power_ten;