Fix several ineffective integer overflow checks
Commit edd4a76e (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 (cherry picked from commit e2e812e5) (cherry picked from commit c6fc7695) Change-Id: I4352c4e39ed5680ef2a86072f6815f8388f25bf4
Loading
Please register or sign in to comment