| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #include "core/include/fpdfapi/cpdf_parser.h" | 7 #include "core/include/fpdfapi/cpdf_parser.h" |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "core/include/fpdfapi/cpdf_document.h" | 11 #include "core/include/fpdfapi/cpdf_document.h" |
| 12 #include "core/include/fpdfapi/fpdf_parser.h" | |
| 13 #include "core/include/fpdfapi/ipdf_crypto_handler.h" | 12 #include "core/include/fpdfapi/ipdf_crypto_handler.h" |
| 14 #include "core/include/fxcrt/fx_ext.h" | 13 #include "core/include/fxcrt/fx_ext.h" |
| 15 #include "core/include/fxcrt/fx_safe_types.h" | 14 #include "core/include/fxcrt/fx_safe_types.h" |
| 16 #include "core/src/fpdfapi/fpdf_parser/cpdf_standard_security_handler.h" | 15 #include "core/src/fpdfapi/fpdf_parser/cpdf_standard_security_handler.h" |
| 17 #include "core/src/fpdfapi/fpdf_parser/cpdf_syntax_parser.h" | 16 #include "core/src/fpdfapi/fpdf_parser/cpdf_syntax_parser.h" |
| 18 #include "core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.h" | 17 #include "core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.h" |
| 19 #include "third_party/base/stl_util.h" | 18 #include "third_party/base/stl_util.h" |
| 20 | 19 |
| 21 namespace { | 20 namespace { |
| 22 | 21 |
| (...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1638 if (!LoadLinearizedAllCrossRefV4(m_LastXRefOffset, m_dwXrefStartObjNum) && | 1637 if (!LoadLinearizedAllCrossRefV4(m_LastXRefOffset, m_dwXrefStartObjNum) && |
| 1639 !LoadLinearizedAllCrossRefV5(m_LastXRefOffset)) { | 1638 !LoadLinearizedAllCrossRefV5(m_LastXRefOffset)) { |
| 1640 m_LastXRefOffset = 0; | 1639 m_LastXRefOffset = 0; |
| 1641 m_pSyntax->m_MetadataObjnum = dwSaveMetadataObjnum; | 1640 m_pSyntax->m_MetadataObjnum = dwSaveMetadataObjnum; |
| 1642 return FORMAT_ERROR; | 1641 return FORMAT_ERROR; |
| 1643 } | 1642 } |
| 1644 | 1643 |
| 1645 m_pSyntax->m_MetadataObjnum = dwSaveMetadataObjnum; | 1644 m_pSyntax->m_MetadataObjnum = dwSaveMetadataObjnum; |
| 1646 return SUCCESS; | 1645 return SUCCESS; |
| 1647 } | 1646 } |
| OLD | NEW |