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

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

Issue 1584663003: Merge to XFA: Fix out of bound access in CPDF_Parser::ParseIndirectObject(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 4 years, 11 months 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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 468
469 CPDF_StreamAcc* GetObjectStream(FX_DWORD number); 469 CPDF_StreamAcc* GetObjectStream(FX_DWORD number);
470 470
471 FX_BOOL IsLinearizedFile(IFX_FileRead* pFileAccess, FX_DWORD offset); 471 FX_BOOL IsLinearizedFile(IFX_FileRead* pFileAccess, FX_DWORD offset);
472 472
473 bool FindPosInOffsets(FX_FILESIZE pos) const; 473 bool FindPosInOffsets(FX_FILESIZE pos) const;
474 474
475 void SetEncryptDictionary(CPDF_Dictionary* pDict); 475 void SetEncryptDictionary(CPDF_Dictionary* pDict);
476 476
477 FX_FILESIZE GetObjectPositionOrZero(FX_DWORD objnum) const; 477 FX_FILESIZE GetObjectPositionOrZero(FX_DWORD objnum) const;
478 void ShrinkObjectMap(FX_DWORD size);
478 479
479 CPDF_Document* m_pDocument; 480 CPDF_Document* m_pDocument;
480 481
481 CPDF_SyntaxParser m_Syntax; 482 CPDF_SyntaxParser m_Syntax;
482 FX_BOOL m_bOwnFileRead; 483 FX_BOOL m_bOwnFileRead;
483 int m_FileVersion; 484 int m_FileVersion;
484 485
485 CPDF_Dictionary* m_pTrailer; 486 CPDF_Dictionary* m_pTrailer;
486 487
487 CPDF_Dictionary* m_pEncryptDict; 488 CPDF_Dictionary* m_pEncryptDict;
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 FX_DWORD src_size, 981 FX_DWORD src_size,
981 const CPDF_Dictionary* pDict, 982 const CPDF_Dictionary* pDict,
982 uint8_t*& dest_buf, 983 uint8_t*& dest_buf,
983 FX_DWORD& dest_size, 984 FX_DWORD& dest_size,
984 CFX_ByteString& ImageEncoding, 985 CFX_ByteString& ImageEncoding,
985 CPDF_Dictionary*& pImageParms, 986 CPDF_Dictionary*& pImageParms,
986 FX_DWORD estimated_size, 987 FX_DWORD estimated_size,
987 FX_BOOL bImageAcc); 988 FX_BOOL bImageAcc);
988 989
989 #endif // CORE_INCLUDE_FPDFAPI_FPDF_PARSER_H_ 990 #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