commit | b022196fb65be10e5aee7bd3d5cc14ab50bb9eef | [log] [tgz] |
---|---|---|
author | Martijn Coenen <[email protected]> | Wed Jan 22 10:41:03 2020 +0100 |
committer | Martijn Coenen <[email protected]> | Fri Jan 31 09:04:46 2020 +0000 |
tree | 7bfcbc43c5425acb3014dbcbbdcb9e6956ff5876 | |
parent | 3da91af05b8071e14fd6e59627c8fd4ed40cdde2 [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: I738b90855b6b9a8effbf55a468c751b6d0b8edd9 (cherry picked from commit d79ac373483c36f893981c7319d37a5ebbd63b98)