commit | 463eaeb308230033e7c1e8d3b11ee480b5fede28 | [log] [tgz] |
---|---|---|
author | Bill Richardson <wfrichar@chromium.org> | Mon Jul 30 15:22:56 2012 -0700 |
committer | Gerrit <chrome-bot@google.com> | Tue Jul 31 16:07:32 2012 -0700 |
tree | 0109a3ebed2d55f5e3ca26ea992e63849bcdfd8a | |
parent | 2312ab612299ee8b4a104dc121d6ab4fc65a9d13 [diff] |
security: Avoid integer wrap on 32-bit platforms This could wrap before the assignment: uint64_t = uint32_t * int; Instead: uint64_t = uint32_t; uint64_t *= int; BUG=chrome-os-partner:11643 TEST=none Nothing to test or verify. If the security guys approve, it's fixed. Change-Id: Ib7c9774998332ac1a29c4551bc039eaa999ee681 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/28841 Reviewed-by: Gaurav Shah <gauravsh@chromium.org>