diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-07-17 20:47:27 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-17 20:47:27 +0000 |
commit | 3d7b555aa843b026c9dcb6b0f855af1d358ef2ba (patch) | |
tree | 66a3e9b7bfe0d640ac70a5af1a4401c64d242ab2 /xfa/fxfa/parser/cxfa_document_parser.h | |
parent | d563855ac72ba9dcec7f111587d6efaafc715b0d (diff) | |
download | pdfium-3d7b555aa843b026c9dcb6b0f855af1d358ef2ba.tar.xz |
Limit recursion depth for CXFA_DocumentParser::NormalLoader().
Bug: chromium:849143
Change-Id: I973bb3be6151ac3afad850533cb735c03e9f3d2c
Reviewed-on: https://pdfium-review.googlesource.com/38210
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_document_parser.h')
-rw-r--r-- | xfa/fxfa/parser/cxfa_document_parser.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xfa/fxfa/parser/cxfa_document_parser.h b/xfa/fxfa/parser/cxfa_document_parser.h index 04ed5abb15..4e75db935a 100644 --- a/xfa/fxfa/parser/cxfa_document_parser.h +++ b/xfa/fxfa/parser/cxfa_document_parser.h @@ -75,6 +75,7 @@ class CXFA_DocumentParser { std::unique_ptr<CFX_XMLDocument> xml_doc_; // TODO(dsinclair): Figure out who owns this. CXFA_Node* m_pRootNode = nullptr; + unsigned long m_ExecuteRecursionDepth = 0; }; #endif // XFA_FXFA_PARSER_CXFA_DOCUMENT_PARSER_H_ |