summaryrefslogtreecommitdiff
path: root/xfa/fxfa/fm2js/xfa_error.cpp
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-04-11 11:05:56 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-04-11 15:27:16 +0000
commit5c97fd86374a1638710870a8603438f6d6fa11d1 (patch)
treef0650a974cdb739c421a961c06d48cb54a087451 /xfa/fxfa/fm2js/xfa_error.cpp
parent6e485caca4d943a616853fbbf7446d398412bf13 (diff)
downloadpdfium-5c97fd86374a1638710870a8603438f6d6fa11d1.tar.xz
Avoid long assignment chain in FM parser
We only parse FM right before translating to JS. Our current implementation of assignment will duplicate to first expression's ToJavascript. So having a long chain of assignments will result in a huge ToJavascript. Bug: chromium:665087 Change-Id: I542371b5787113be2f2d686153ed0a6c48191bab Reviewed-on: https://pdfium-review.googlesource.com/4030 Commit-Queue: Nicolás Peña <npm@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/fm2js/xfa_error.cpp')
-rw-r--r--xfa/fxfa/fm2js/xfa_error.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/xfa/fxfa/fm2js/xfa_error.cpp b/xfa/fxfa/fm2js/xfa_error.cpp
index 9ca886954a..1d31ce6958 100644
--- a/xfa/fxfa/fm2js/xfa_error.cpp
+++ b/xfa/fxfa/fm2js/xfa_error.cpp
@@ -15,3 +15,5 @@ const wchar_t kFMErrExpectedEndIf[] = L"expected 'endif' instead of '%s'";
const wchar_t kFMErrUnexpectedExpression[] = L"unexpected expression '%s'";
const wchar_t kFMErrExpectedNonEmptyExpression[] =
L"expected non-empty expression";
+const wchar_t kFMErrLongAssignmentChain[] =
+ L"long assignment chains are unsupported";