summaryrefslogtreecommitdiff
path: root/core/include
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-03 10:06:25 -0700
committerLei Zhang <thestig@chromium.org>2015-10-03 10:06:25 -0700
commit4f277fc8d41303cbf007335dfbbff60b81fffde0 (patch)
tree9d2f325bffdc4b7cd774f0d87d8d3cfc7d76448d /core/include
parent9b6735445f20ae17b883b5739bf79a7c1f99e139 (diff)
downloadpdfium-4f277fc8d41303cbf007335dfbbff60b81fffde0.tar.xz
Fix NULL pointer dereference in CPDF_InterForm.
BUG=537772 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1387703002 .
Diffstat (limited to 'core/include')
-rw-r--r--core/include/fpdfdoc/fpdf_doc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/include/fpdfdoc/fpdf_doc.h b/core/include/fpdfdoc/fpdf_doc.h
index 0588a3a914..b0c129b05e 100644
--- a/core/include/fpdfdoc/fpdf_doc.h
+++ b/core/include/fpdfdoc/fpdf_doc.h
@@ -738,7 +738,7 @@ class CPDF_InterForm : public CFX_PrivateData {
int CompareFieldName(const CFX_ByteString& name1,
const CFX_ByteString& name2);
- CPDF_Document* m_pDocument;
+ CPDF_Document* const m_pDocument;
FX_BOOL m_bGenerateAP;
@@ -746,7 +746,7 @@ class CPDF_InterForm : public CFX_PrivateData {
std::map<const CPDF_Dictionary*, CPDF_FormControl*> m_ControlMap;
- CFieldTree* m_pFieldTree;
+ nonstd::unique_ptr<CFieldTree> m_pFieldTree;
CFX_ByteString m_bsEncoding;