diff options
author | foxit <jun_fang@foxitsoftware.com> | 2014-07-07 14:00:41 -0700 |
---|---|---|
committer | foxit <jun_fang@foxitsoftware.com> | 2014-07-07 14:00:41 -0700 |
commit | e644f7f0bc3f152461c5e29ca5c96d4837ba62d9 (patch) | |
tree | 289fddaf6736d2b20bf980ae188cc53ba34f10f5 /core/src/fpdfapi/fpdf_parser | |
parent | 5a5c04203ed06f10df7445767f6dab5d0fb696cf (diff) | |
download | pdfium-e644f7f0bc3f152461c5e29ca5c96d4837ba62d9.tar.xz |
Fix uninitialized offset
BUG=387783
R=palmer@chromium.org
Review URL: https://codereview.chromium.org/368783004
Diffstat (limited to 'core/src/fpdfapi/fpdf_parser')
-rw-r--r-- | core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp index 5e926c31b9..b9e535977d 100644 --- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp +++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp @@ -3078,7 +3078,7 @@ CPDF_Object* CPDF_DataAvail::GetObject(FX_DWORD objnum, IFX_DownloadHints* pHint } return pRet; } - FX_FILESIZE offset; + FX_FILESIZE offset = 0; FX_DWORD size = GetObjectSize(objnum, offset); size = (FX_DWORD)((FX_FILESIZE)(offset + size + 512) > m_dwFileLen ? m_dwFileLen - offset : size + 512); if (!m_pFileAvail->IsDataAvail(offset, size)) { |