diff options
author | dsinclair <dsinclair@chromium.org> | 2016-08-29 11:52:10 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-29 11:52:10 -0700 |
commit | e8ae48361bd0a4d8df47d925156b4159658a7941 (patch) | |
tree | 26f66c264cc41473a95cb8dffcd6bc0d44628ef6 | |
parent | d09a09751f724ecdb1a0bc307447a3d0c212ebff (diff) | |
download | pdfium-e8ae48361bd0a4d8df47d925156b4159658a7941.tar.xz |
Initialize the CPDF_Document pointer
This CL is a speculative fix for the associated BUG. Make sure the CPDF_Document
is initialized in the constructor.
BUG=chromium:640998
Review-Url: https://codereview.chromium.org/2291743002
-rw-r--r-- | core/fpdfapi/fpdf_parser/cpdf_parser.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fpdfapi/fpdf_parser/cpdf_parser.cpp b/core/fpdfapi/fpdf_parser/cpdf_parser.cpp index bd6c8648e0..529e751f6c 100644 --- a/core/fpdfapi/fpdf_parser/cpdf_parser.cpp +++ b/core/fpdfapi/fpdf_parser/cpdf_parser.cpp @@ -47,7 +47,8 @@ int32_t GetStreamFirst(CPDF_StreamAcc* pObjStream) { } // namespace CPDF_Parser::CPDF_Parser() - : m_bHasParsed(false), + : m_pDocument(nullptr), + m_bHasParsed(false), m_bOwnFileRead(true), m_FileVersion(0), m_pTrailer(nullptr), |