summaryrefslogtreecommitdiff
path: root/xfa/fxfa
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2017-09-01 12:14:26 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-09-01 16:30:01 +0000
commitdce09b18b48837d8006694b9dc3b2d026e5e7869 (patch)
treeb5fe9a3a84503e94da73a13559700e290e45f29e /xfa/fxfa
parent57cb5447d68c01eddba0618c3a8fe450b180f917 (diff)
downloadpdfium-dce09b18b48837d8006694b9dc3b2d026e5e7869.tar.xz
Fix integer overflow in Buffer_itoa when passing INT_MIN.
Bug: chromium:760034 Change-Id: Id0862749b1454e065de4de7d746a27e78ac58e30 Reviewed-on: https://pdfium-review.googlesource.com/12730 Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fxfa')
-rw-r--r--xfa/fxfa/fm2js/cxfa_fm2jscontext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fm2jscontext.cpp b/xfa/fxfa/fm2js/cxfa_fm2jscontext.cpp
index 73e6c221dc..b68be12b31 100644
--- a/xfa/fxfa/fm2js/cxfa_fm2jscontext.cpp
+++ b/xfa/fxfa/fm2js/cxfa_fm2jscontext.cpp
@@ -5790,7 +5790,7 @@ CFX_ByteString CXFA_FM2JSContext::GenerateSomExpression(
if (iIndexFlags == 1 || iIndexValue == 0) {
return CFX_ByteString(szName, "[") +
- CFX_ByteString::FormatInteger(iIndexValue, FXFORMAT_SIGNED) + "]";
+ CFX_ByteString::FormatInteger(iIndexValue) + "]";
}
CFX_ByteString szSomExp;
if (iIndexFlags == 2) {