diff options
author | ricea <ricea@chromium.org> | 2015-09-18 21:10:07 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-19 04:10:44 +0000 |
commit | 95212c13d90f2d8f45c5c48be6eb0da1832ec34e (patch) | |
tree | 815d575cf7de5978fb1313ac61a961c9beaf39c2 /chrome/third_party | |
parent | ebc386dbe256eae2c3059e4b9ab0124afeed7974 (diff) | |
download | chromium_src-95212c13d90f2d8f45c5c48be6eb0da1832ec34e.zip chromium_src-95212c13d90f2d8f45c5c48be6eb0da1832ec34e.tar.gz chromium_src-95212c13d90f2d8f45c5c48be6eb0da1832ec34e.tar.bz2 |
Use correct IntToString variants in //chrome
Using IntToString() with a type larger than an int can lead to
unexpected truncation. Similarly, using it with an unsigned value can
lead to undesirable results.
Use the appropriate IntToString() variant for the type of the integer
being converted.
BUG=505479
TEST=compiled
Review URL: https://codereview.chromium.org/1358513003
Cr-Commit-Position: refs/heads/master@{#349846}
Diffstat (limited to 'chrome/third_party')
-rw-r--r-- | chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp b/chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp index 563fae6..b1507ff 100644 --- a/chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp +++ b/chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp @@ -678,7 +678,7 @@ std::string ProcessUserNotice(SECItem* der_notice) { if (itemList != notice->noticeReference.noticeNumbers) rv += ", "; rv += '#'; - rv += base::UTF16ToUTF8(base::UintToString16(number)); + rv += base::UTF16ToUTF8(base::Uint64ToString16(number)); } itemList++; } |