diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-02-15 15:09:45 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-15 15:09:45 +0000 |
commit | 46f79aaad8330857e58cfd3928fdf91678112ae0 (patch) | |
tree | af3942be6aaf45858a0faf598e97c0d44afe5003 /fxjs/cjs_style.cpp | |
parent | c4ffab7a2308dabdc2ba1355902d94f7cc3b2d8f (diff) | |
download | pdfium-46f79aaad8330857e58cfd3928fdf91678112ae0.tar.xz |
Add limit to number of formcalc expressions
Currently it's possible to create a formcalc script which creates a
large number of expressions. This will eventually cause stack exhaustion
as we try to allocate the needed expression objects.
This CL limits the number of parsed expressions in the PostExpression
section in order to keep from failing due to stack overflow.
Bug: chromium:799721
Change-Id: I69fca35db7f75ef97aec21c22fc06d926dfe2df6
Reviewed-on: https://pdfium-review.googlesource.com/26870
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'fxjs/cjs_style.cpp')
0 files changed, 0 insertions, 0 deletions