diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-07-17 09:29:05 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-17 16:44:06 +0000 |
commit | ffbc0d9a08f8443e67965f03dc0ae427c7f8d145 (patch) | |
tree | 4406f3721977421f76aa28bc6b264dcc58c5c077 /testing/resources/javascript/bug_740166.in | |
parent | 0b7378afe3dee6db6cff8ee834e758d3a76efa3b (diff) | |
download | pdfium-ffbc0d9a08f8443e67965f03dc0ae427c7f8d145.tar.xz |
More tightly validate format strings in util.cpp.chromium/3160
Re-work the previous fix to be even more particular
about the input.
Bug: chromium:740166
Change-Id: I6bea3b6a6dd320a83f830b07afd52951be7d1b63
Reviewed-on: https://pdfium-review.googlesource.com/7691
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'testing/resources/javascript/bug_740166.in')
-rw-r--r-- | testing/resources/javascript/bug_740166.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/testing/resources/javascript/bug_740166.in b/testing/resources/javascript/bug_740166.in index 62bc912e31..1e2eb910ff 100644 --- a/testing/resources/javascript/bug_740166.in +++ b/testing/resources/javascript/bug_740166.in @@ -47,7 +47,10 @@ endobj {{object 11 0}} << >> stream -app.alert("Value " + util.printf("= %0.769x", 1)); +app.alert(util.printf("Values = %0.1x .9999 %x", 1, 2)); +app.alert(util.printf("Values = %0.10x .9999 %x", 1, 2)); +app.alert(util.printf("Values = %0.100x .9999 %x", 1, 2)); +app.alert(util.printf("Values = %0.1000x .9999 %x", 1, 2)); endstream endobj {{xref}} |