diff options
author | John Abd-El-Malek <jam@chromium.org> | 2014-06-05 11:12:52 -0700 |
---|---|---|
committer | John Abd-El-Malek <jam@chromium.org> | 2014-06-05 11:12:52 -0700 |
commit | f0a5576384e6def4f1fe78d6e0b12b0a9d710bf8 (patch) | |
tree | 5b8ddc93dd549f9b63e9216fa85673ba7e6f454b /core/src/fxcodec/codec | |
parent | bb2b1e72929fb78f9d5b64b3732ed9b5cc93af4e (diff) | |
download | pdfium-f0a5576384e6def4f1fe78d6e0b12b0a9d710bf8.tar.xz |
fix two uninitialized reads
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
Diffstat (limited to 'core/src/fxcodec/codec')
-rw-r--r-- | core/src/fxcodec/codec/fx_codec_jpeg.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/fxcodec/codec/fx_codec_jpeg.cpp b/core/src/fxcodec/codec/fx_codec_jpeg.cpp index b0a6bd49a8..aae3e24c05 100644 --- a/core/src/fxcodec/codec/fx_codec_jpeg.cpp +++ b/core/src/fxcodec/codec/fx_codec_jpeg.cpp @@ -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; |