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

Side by Side Diff: core/include/fpdfapi/fpdf_parser.h

Issue 1527823003: Fix free entry handling for cross reference v4 reading. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 7 #ifndef CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_
8 #define CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 8 #define CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 CPDF_Document* m_pDocument; 470 CPDF_Document* m_pDocument;
471 471
472 CPDF_SyntaxParser m_Syntax; 472 CPDF_SyntaxParser m_Syntax;
473 FX_BOOL m_bOwnFileRead; 473 FX_BOOL m_bOwnFileRead;
474 CPDF_Object* ParseDirect(CPDF_Object* pObj); 474 CPDF_Object* ParseDirect(CPDF_Object* pObj);
475 475
476 FX_BOOL LoadAllCrossRefV4(FX_FILESIZE pos); 476 FX_BOOL LoadAllCrossRefV4(FX_FILESIZE pos);
477 477
478 FX_BOOL LoadAllCrossRefV5(FX_FILESIZE pos); 478 FX_BOOL LoadAllCrossRefV5(FX_FILESIZE pos);
479 479
480 bool LoadCrossRefV4(FX_FILESIZE pos, 480 bool LoadCrossRefV4(FX_FILESIZE pos, FX_FILESIZE streampos, FX_BOOL bSkip);
481 FX_FILESIZE streampos,
482 FX_BOOL bSkip,
483 FX_BOOL bFirst);
484 481
485 FX_BOOL LoadCrossRefV5(FX_FILESIZE* pos, FX_BOOL bMainXRef); 482 FX_BOOL LoadCrossRefV5(FX_FILESIZE* pos, FX_BOOL bMainXRef);
486 483
487 CPDF_Dictionary* LoadTrailerV4(); 484 CPDF_Dictionary* LoadTrailerV4();
488 485
489 FX_BOOL RebuildCrossRef(); 486 FX_BOOL RebuildCrossRef();
490 487
491 FX_DWORD SetEncryptHandler(); 488 FX_DWORD SetEncryptHandler();
492 489
493 void ReleaseEncryptHandler(); 490 void ReleaseEncryptHandler();
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 FX_DWORD src_size, 1004 FX_DWORD src_size,
1008 const CPDF_Dictionary* pDict, 1005 const CPDF_Dictionary* pDict,
1009 uint8_t*& dest_buf, 1006 uint8_t*& dest_buf,
1010 FX_DWORD& dest_size, 1007 FX_DWORD& dest_size,
1011 CFX_ByteString& ImageEncoding, 1008 CFX_ByteString& ImageEncoding,
1012 CPDF_Dictionary*& pImageParms, 1009 CPDF_Dictionary*& pImageParms,
1013 FX_DWORD estimated_size, 1010 FX_DWORD estimated_size,
1014 FX_BOOL bImageAcc); 1011 FX_BOOL bImageAcc);
1015 1012
1016 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 1013 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698