From e644f7f0bc3f152461c5e29ca5c96d4837ba62d9 Mon Sep 17 00:00:00 2001 From: foxit Date: Mon, 7 Jul 2014 14:00:41 -0700 Subject: Fix uninitialized offset BUG=387783 R=palmer@chromium.org Review URL: https://codereview.chromium.org/368783004 --- core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/src/fpdfapi/fpdf_parser') 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)) { -- cgit v1.2.3