From e9fcd8e242d6fa655ca5a576a3dde9abbda24b64 Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Wed, 23 Aug 2017 11:07:36 -0400 Subject: Reduce FM2JS parser depth limit to avoid memory exhaustion The current limit of 2000 is still causing occassional ASAN issues, reducing to 1250. BUG=chromium:757711 Change-Id: Idb07f97b01230afabcceaa23b29495432193ec64 Reviewed-on: https://pdfium-review.googlesource.com/11750 Commit-Queue: dsinclair Reviewed-by: dsinclair --- xfa/fxfa/fm2js/cxfa_fmparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fxfa/fm2js') diff --git a/xfa/fxfa/fm2js/cxfa_fmparser.cpp b/xfa/fxfa/fm2js/cxfa_fmparser.cpp index 42a65e5838..2981a4dd84 100644 --- a/xfa/fxfa/fm2js/cxfa_fmparser.cpp +++ b/xfa/fxfa/fm2js/cxfa_fmparser.cpp @@ -15,7 +15,7 @@ namespace { const unsigned int kMaxAssignmentChainLength = 12; -const unsigned int kMaxParseDepth = 2000; +const unsigned int kMaxParseDepth = 1250; } // namespace -- cgit v1.2.3