commit | e2e812e58e8d2716b00d7d82db99b08d3afb4b32 | [log] [tgz] |
---|---|---|
author | Joshua J. Drake <android-open-source@qoop.org> | Wed Apr 08 23:23:55 2015 -0500 |
committer | Nick Kralevich <nnk@google.com> | Thu Apr 09 17:34:16 2015 -0700 |
tree | 8cad47288e56acea506594453134abcc40763c1c | |
parent | e3e82d54c51a3130badcd9e433fe808d965f15c2 [diff] |
Fix several ineffective integer overflow checks Commit edd4a76 (which addressed bugs 15328708, 15342615, 15342751) added several integer overflow checks. Unfortunately, those checks fail to take into account integer promotion rules and are thus themselves subject to an integer overflow. Cast the sizeof() operator to a uint64_t to force promotion while multiplying. Bug: 20139950 Change-Id: Ieb29a170edb805c722fc5658935f2390003e5260