diff options
author | Ryan Harrison <rharrison@chromium.org> | 2017-08-16 13:56:12 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-16 19:02:51 +0000 |
commit | a169364e46956875db35fb1baacc4a0a1ee17f08 (patch) | |
tree | 27900d44d1655402bf52bf72c86fc429df9aaacd /xfa/fxfa/cxfa_textparser.cpp | |
parent | 75c65210c59de575f5a536f53bab9018b6edbed9 (diff) | |
download | pdfium-a169364e46956875db35fb1baacc4a0a1ee17f08.tar.xz |
Add parse depth limit to FormCalc parser
Due to the recursive nature of the FormCalc parser, deeply nested
expressions can lead to memory being exhausted. This check is being
added to have the parser exit early instead of running out of
memory. This should reduce the number of false positives about
addressing issues being found by fuzzers.
BUG=chromium:752433
Change-Id: I511ecfb07e32073555e1fd1658f3b8b47f1a5a91
Reviewed-on: https://pdfium-review.googlesource.com/11170
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_textparser.cpp')
0 files changed, 0 insertions, 0 deletions