From 0e4e36878682e22678bb061e77d73f3a4581985c Mon Sep 17 00:00:00 2001 From: Jun Fang Date: Tue, 1 Dec 2015 12:23:42 +0800 Subject: Fix a crasher due to recursion in CXFA_WidgetAcc::ExecuteScript() BUG=pdfium:292 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1486573002 . --- xfa/include/fxfa/fxfa_widget.h | 1 + 1 file changed, 1 insertion(+) (limited to 'xfa/include') diff --git a/xfa/include/fxfa/fxfa_widget.h b/xfa/include/fxfa/fxfa_widget.h index 634a287628..3040dafcbc 100644 --- a/xfa/include/fxfa/fxfa_widget.h +++ b/xfa/include/fxfa/fxfa_widget.h @@ -113,5 +113,6 @@ class CXFA_WidgetAcc : public CXFA_WidgetData { void StartTextLayout(FX_FLOAT& fCalcWidth, FX_FLOAT& fCalcHeight); CXFA_FFDocView* m_pDocView; CXFA_WidgetLayoutData* m_pLayoutData; + uint32_t m_nRecursionDepth; }; #endif -- cgit v1.2.3