diff options
author | Ryan Harrison <rharrison@chromium.org> | 2017-08-23 11:07:36 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-23 19:14:11 +0000 |
commit | e9fcd8e242d6fa655ca5a576a3dde9abbda24b64 (patch) | |
tree | e1b375983bc2f65a29b2258cd9e7cb3a186718dc /xfa/fxfa/fm2js/cxfa_fmparser.cpp | |
parent | 978b1fabff13f7d1a22d2653c117910939e3695e (diff) | |
download | pdfium-e9fcd8e242d6fa655ca5a576a3dde9abbda24b64.tar.xz |
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>
Diffstat (limited to 'xfa/fxfa/fm2js/cxfa_fmparser.cpp')
-rw-r--r-- | xfa/fxfa/fm2js/cxfa_fmparser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |