summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorfoxit <jun_fang@foxitsoftware.com>2014-07-07 14:00:41 -0700
committerfoxit <jun_fang@foxitsoftware.com>2014-07-07 14:00:41 -0700
commite644f7f0bc3f152461c5e29ca5c96d4837ba62d9 (patch)
tree289fddaf6736d2b20bf980ae188cc53ba34f10f5 /core
parent5a5c04203ed06f10df7445767f6dab5d0fb696cf (diff)
downloadpdfium-e644f7f0bc3f152461c5e29ca5c96d4837ba62d9.tar.xz
Fix uninitialized offset
BUG=387783 R=palmer@chromium.org Review URL: https://codereview.chromium.org/368783004
Diffstat (limited to 'core')
-rw-r--r--core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp2
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)) {