diff options
Diffstat (limited to 'core/fpdfapi/parser')
-rw-r--r-- | core/fpdfapi/parser/cpdf_parser.cpp | 8 | ||||
-rw-r--r-- | core/fpdfapi/parser/cpdf_parser.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/core/fpdfapi/parser/cpdf_parser.cpp b/core/fpdfapi/parser/cpdf_parser.cpp index 3bd0574000..c57d65e78e 100644 --- a/core/fpdfapi/parser/cpdf_parser.cpp +++ b/core/fpdfapi/parser/cpdf_parser.cpp @@ -116,7 +116,7 @@ CPDF_Parser::CPDF_Parser() m_FileVersion(0), m_pEncryptDict(nullptr), m_TrailerData(pdfium::MakeUnique<TrailerData>()), - m_linearized_first_page_cross_ref_start_obj_num(0) {} + m_dwLinearizedFirstPageXRefStartObjNum(0) {} CPDF_Parser::~CPDF_Parser() { ReleaseEncryptHandler(); @@ -1401,7 +1401,7 @@ CPDF_Parser::Error CPDF_Parser::StartLinearizedParse( bXRefRebuilt = true; m_LastXRefOffset = 0; } - m_linearized_first_page_cross_ref_start_obj_num = + m_dwLinearizedFirstPageXRefStartObjNum = m_ObjectInfo.empty() ? 0 : m_ObjectInfo.begin()->first; if (bLoadV4) { std::unique_ptr<CPDF_Dictionary> trailer = LoadTrailerV4(); @@ -1497,8 +1497,8 @@ CPDF_Parser::Error CPDF_Parser::LoadLinearizedMainXRefTable() { // objnum. // And should have count equals to first obj number of first page cross ref // table. - if (!LoadLinearizedAllCrossRefV4( - m_LastXRefOffset, m_linearized_first_page_cross_ref_start_obj_num) && + if (!LoadLinearizedAllCrossRefV4(m_LastXRefOffset, + m_dwLinearizedFirstPageXRefStartObjNum) && !LoadLinearizedAllCrossRefV5(m_LastXRefOffset)) { m_LastXRefOffset = 0; m_pSyntax->m_MetadataObjnum = dwSaveMetadataObjnum; diff --git a/core/fpdfapi/parser/cpdf_parser.h b/core/fpdfapi/parser/cpdf_parser.h index 437f214db6..10c70357da 100644 --- a/core/fpdfapi/parser/cpdf_parser.h +++ b/core/fpdfapi/parser/cpdf_parser.h @@ -199,7 +199,7 @@ class CPDF_Parser { CFX_ByteString m_Password; std::unique_ptr<TrailerData> m_TrailerData; std::unique_ptr<CPDF_LinearizedHeader> m_pLinearized; - uint32_t m_linearized_first_page_cross_ref_start_obj_num; + uint32_t m_dwLinearizedFirstPageXRefStartObjNum; // A map of object numbers to indirect streams. std::map<uint32_t, CFX_RetainPtr<CPDF_StreamAcc>> m_ObjectStreamMap; |