OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 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/src/fpdfapi/fpdf_edit/editint.h" | 7 #include "core/src/fpdfapi/fpdf_edit/editint.h" |
8 | 8 |
| 9 #include <vector> |
| 10 |
9 #include "core/include/fxcrt/fx_ext.h" | 11 #include "core/include/fxcrt/fx_ext.h" |
10 #include "core/include/fpdfapi/fpdf_serial.h" | 12 #include "core/include/fpdfapi/fpdf_serial.h" |
11 #include "core/include/fpdfapi/fpdf_parser.h" | 13 #include "core/include/fpdfapi/fpdf_parser.h" |
12 | 14 |
13 #define PDF_OBJECTSTREAM_MAXLENGTH (256 * 1024) | 15 #define PDF_OBJECTSTREAM_MAXLENGTH (256 * 1024) |
14 #define PDF_XREFSTREAM_MAXSIZE 10000 | 16 #define PDF_XREFSTREAM_MAXSIZE 10000 |
15 | 17 |
16 namespace { | 18 namespace { |
17 | 19 |
18 int32_t PDF_CreatorAppendObject(const CPDF_Object* pObj, | 20 int32_t PDF_CreatorAppendObject(const CPDF_Object* pObj, |
(...skipping 2065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2084 m_bNewCrypto = FALSE; | 2086 m_bNewCrypto = FALSE; |
2085 if (!m_bStandardSecurity) { | 2087 if (!m_bStandardSecurity) { |
2086 return; | 2088 return; |
2087 } | 2089 } |
2088 if (m_pEncryptDict) { | 2090 if (m_pEncryptDict) { |
2089 m_pEncryptDict->Release(); | 2091 m_pEncryptDict->Release(); |
2090 m_pEncryptDict = NULL; | 2092 m_pEncryptDict = NULL; |
2091 } | 2093 } |
2092 m_bStandardSecurity = FALSE; | 2094 m_bStandardSecurity = FALSE; |
2093 } | 2095 } |
OLD | NEW |