commit | e9fcd8e242d6fa655ca5a576a3dde9abbda24b64 | [log] [tgz] |
---|---|---|
author | Ryan Harrison <rharrison@chromium.org> | Wed Aug 23 11:07:36 2017 -0400 |
committer | Chromium commit bot <commit-bot@chromium.org> | Wed Aug 23 19:14:11 2017 +0000 |
tree | e1b375983bc2f65a29b2258cd9e7cb3a186718dc | |
parent | 978b1fabff13f7d1a22d2653c117910939e3695e [diff] |
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 <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
diff --git a/xfa/fxfa/fm2js/cxfa_fmparser.cpp b/xfa/fxfa/fm2js/cxfa_fmparser.cpp index 42a65e5..2981a4d 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