commit | da2f2fd0f4c4eeb498b4b0541719f4f34faf13e2 | [log] [tgz] |
---|---|---|
author | Martijn Coenen <maco@google.com> | Wed Jan 22 10:46:25 2020 +0100 |
committer | Martijn Coenen <maco@google.com> | Thu Jan 23 09:45:03 2020 +0100 |
tree | 2a6240c5159623455a45c637d8eb4754d76fc9ab | |
parent | 46bb0aec07de33d13c545c39f5e2720450a50731 [diff] |
Fix addition/overflow checks. For unsigned arithmetic, use: (a + b < a) to detect whether a+b wraps (a > c / b) to detect whether a*b > c Bug: 120078455 Test: builds and boots Change-Id: Ic4f4d44f7c0656caa115f90f4cfa130192914949