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

Side by Side Diff: core/include/fpdfdoc/fpdf_doc.h

Issue 1380603006: Merge to XFA: Fix NULL pointer dereference in CPDF_InterForm. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 2 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/fpdfdoc/doc_form.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_FPDFDOC_FPDF_DOC_H_ 7 #ifndef CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
8 #define CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ 8 #define CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
9 9
10 #include <map> 10 #include <map>
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 int iType, 731 int iType,
732 const CPDF_FormField* pExcludedField, 732 const CPDF_FormField* pExcludedField,
733 const CPDF_FormControl* pExcludedControl); 733 const CPDF_FormControl* pExcludedControl);
734 734
735 int CompareFieldName(const CFX_WideString& name1, 735 int CompareFieldName(const CFX_WideString& name1,
736 const CFX_WideString& name2); 736 const CFX_WideString& name2);
737 737
738 int CompareFieldName(const CFX_ByteString& name1, 738 int CompareFieldName(const CFX_ByteString& name1,
739 const CFX_ByteString& name2); 739 const CFX_ByteString& name2);
740 740
741 CPDF_Document* m_pDocument; 741 CPDF_Document* const m_pDocument;
742 742
743 FX_BOOL m_bGenerateAP; 743 FX_BOOL m_bGenerateAP;
744 744
745 CPDF_Dictionary* m_pFormDict; 745 CPDF_Dictionary* m_pFormDict;
746 746
747 std::map<const CPDF_Dictionary*, CPDF_FormControl*> m_ControlMap; 747 std::map<const CPDF_Dictionary*, CPDF_FormControl*> m_ControlMap;
748 748
749 CFieldTree* m_pFieldTree; 749 nonstd::unique_ptr<CFieldTree> m_pFieldTree;
750 750
751 CFX_ByteString m_bsEncoding; 751 CFX_ByteString m_bsEncoding;
752 752
753 CPDF_FormNotify* m_pFormNotify; 753 CPDF_FormNotify* m_pFormNotify;
754 754
755 FX_BOOL m_bUpdated; 755 FX_BOOL m_bUpdated;
756 friend class CPDF_FormControl; 756 friend class CPDF_FormControl;
757 friend class CPDF_FormField; 757 friend class CPDF_FormField;
758 }; 758 };
759 #define FORMFIELD_READONLY 0x01 759 #define FORMFIELD_READONLY 0x01
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
1206 FX_FLOAT fc[4], 1206 FX_FLOAT fc[4],
1207 const CFX_ByteStringC& csEntry); 1207 const CFX_ByteStringC& csEntry);
1208 1208
1209 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry); 1209 CFX_WideString GetCaption(const CFX_ByteStringC& csEntry);
1210 1210
1211 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry); 1211 CPDF_Stream* GetIcon(const CFX_ByteStringC& csEntry);
1212 friend class CPDF_FormControl; 1212 friend class CPDF_FormControl;
1213 }; 1213 };
1214 1214
1215 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_ 1215 #endif // CORE_INCLUDE_FPDFDOC_FPDF_DOC_H_
OLDNEW
« no previous file with comments | « no previous file | core/src/fpdfdoc/doc_form.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698