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

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

Issue 1496703005: Prevent infinite looping in CPDF_Parser::LoadAllCrossRefV5(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase 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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
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,
481 FX_FILESIZE streampos, 481 FX_FILESIZE streampos,
482 FX_BOOL bSkip, 482 FX_BOOL bSkip,
483 FX_BOOL bFirst); 483 FX_BOOL bFirst);
484 484
485 FX_BOOL LoadCrossRefV5(FX_FILESIZE pos, FX_FILESIZE& prev, FX_BOOL bMainXRef); 485 FX_BOOL LoadCrossRefV5(FX_FILESIZE* pos, FX_BOOL bMainXRef);
486 486
487 CPDF_Dictionary* LoadTrailerV4(); 487 CPDF_Dictionary* LoadTrailerV4();
488 488
489 FX_BOOL RebuildCrossRef(); 489 FX_BOOL RebuildCrossRef();
490 490
491 FX_DWORD SetEncryptHandler(); 491 FX_DWORD SetEncryptHandler();
492 492
493 void ReleaseEncryptHandler(); 493 void ReleaseEncryptHandler();
494 494
495 FX_BOOL LoadLinearizedAllCrossRefV4(FX_FILESIZE pos, FX_DWORD dwObjCount); 495 FX_BOOL LoadLinearizedAllCrossRefV4(FX_FILESIZE pos, FX_DWORD dwObjCount);
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 FX_DWORD src_size, 1008 FX_DWORD src_size,
1009 const CPDF_Dictionary* pDict, 1009 const CPDF_Dictionary* pDict,
1010 uint8_t*& dest_buf, 1010 uint8_t*& dest_buf,
1011 FX_DWORD& dest_size, 1011 FX_DWORD& dest_size,
1012 CFX_ByteString& ImageEncoding, 1012 CFX_ByteString& ImageEncoding,
1013 CPDF_Dictionary*& pImageParms, 1013 CPDF_Dictionary*& pImageParms,
1014 FX_DWORD estimated_size, 1014 FX_DWORD estimated_size,
1015 FX_BOOL bImageAcc); 1015 FX_BOOL bImageAcc);
1016 1016
1017 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 1017 #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