Check for integer overflow properly.

Bug: 30769313
Change-Id: I80ac8712ebb534287fe59c396037b527a3667b54
1 file changed