Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2794)

Unified Diff: core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp

Issue 454283002: Fix the issue 'SEGV on unknown address in CPDF_DataAvail::GetObjectSize' (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
index e0fd3bfaeecea13e1b023d68982f3d35897ff2b9..4dcaa5a94f6914c04d7c40323c5308a966a99627 100644
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
@@ -4114,12 +4114,13 @@ FX_BOOL CPDF_DataAvail::CheckLinearizedData(IFX_DownloadHints* pHints)
FX_DWORD dwRet = 0;
if (!m_bMainXRefLoad) {
Tom Sepez 2014/08/09 17:55:36 does m_bMainXRefLoad mean "main xref load succeede
jun_fang 2014/08/18 06:58:00 if |m_bMainXRefLoad| is true, it means that xref i
palmer 2014/08/19 20:26:41 In that case, I would call it |m_bMainXRefLoadSucc
dwRet = ((CPDF_Parser *)m_pDocument->GetParser())->LoadLinearizedMainXRefTable();
- if (dwRet == PDFPARSE_ERROR_SUCCESS) {
- if (!PreparePageItem()) {
- return FALSE;
- }
- m_bMainXRefLoadedOK = TRUE;
+ if (dwRet != PDFPARSE_ERROR_SUCCESS) {
+ return FALSE;
+ }
+ if (!PreparePageItem()) {
+ return FALSE;
}
+ m_bMainXRefLoadedOK = TRUE;
Tom Sepez 2014/08/09 17:55:36 What's the difference between m_bMainXrefLoadedOK
jun_fang 2014/08/18 06:58:00 They are different. |m_bMainXrefLoadedOK is true|
palmer 2014/08/19 20:26:41 Wait, then what does |m_bMainXRefLoad| mean that i
m_bMainXRefLoad = TRUE;
}
m_bLinearedDataOK = TRUE;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698