| 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/fpdfapi/fpdf_parser/cpdf_syntax_parser.h" | 7 #include "core/fpdfapi/fpdf_parser/cpdf_syntax_parser.h" |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h" | 21 #include "core/fpdfapi/fpdf_parser/include/cpdf_string.h" |
| 22 #include "core/fpdfapi/fpdf_parser/include/fpdf_parser_decode.h" | 22 #include "core/fpdfapi/fpdf_parser/include/fpdf_parser_decode.h" |
| 23 #include "core/fpdfapi/include/cpdf_modulemgr.h" | 23 #include "core/fpdfapi/include/cpdf_modulemgr.h" |
| 24 #include "core/fxcrt/include/fx_ext.h" | 24 #include "core/fxcrt/include/fx_ext.h" |
| 25 #include "third_party/base/numerics/safe_math.h" | 25 #include "third_party/base/numerics/safe_math.h" |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| 28 | 28 |
| 29 struct SearchTagRecord { | 29 struct SearchTagRecord { |
| 30 CFX_ByteStringC m_bsTag; | 30 CFX_ByteStringC m_bsTag; |
| 31 uint32_t m_Offset; | 31 FX_STRSIZE m_Offset; |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } // namespace | 34 } // namespace |
| 35 | 35 |
| 36 // static | 36 // static |
| 37 int CPDF_SyntaxParser::s_CurrentRecursionDepth = 0; | 37 int CPDF_SyntaxParser::s_CurrentRecursionDepth = 0; |
| 38 | 38 |
| 39 CPDF_SyntaxParser::CPDF_SyntaxParser() | 39 CPDF_SyntaxParser::CPDF_SyntaxParser() |
| 40 : m_MetadataObjnum(0), | 40 : m_MetadataObjnum(0), |
| 41 m_pFileAccess(nullptr), | 41 m_pFileAccess(nullptr), |
| (...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 982 if (limit && m_Pos == limit) | 982 if (limit && m_Pos == limit) |
| 983 return -1; | 983 return -1; |
| 984 } | 984 } |
| 985 return -1; | 985 return -1; |
| 986 } | 986 } |
| 987 | 987 |
| 988 void CPDF_SyntaxParser::SetEncrypt( | 988 void CPDF_SyntaxParser::SetEncrypt( |
| 989 std::unique_ptr<CPDF_CryptoHandler> pCryptoHandler) { | 989 std::unique_ptr<CPDF_CryptoHandler> pCryptoHandler) { |
| 990 m_pCryptoHandler = std::move(pCryptoHandler); | 990 m_pCryptoHandler = std::move(pCryptoHandler); |
| 991 } | 991 } |
| OLD | NEW |