diff options
| author | Ivan Lozano <ivanlozano@google.com> | 2017-12-14 12:25:36 -0800 |
|---|---|---|
| committer | Ivan Lozano <ivanlozano@google.com> | 2018-01-12 16:48:38 -0800 |
| commit | d09e917cd199e35325cc01a66957097e26676e04 (patch) | |
| tree | 04dbe01b97c8a57e130fe54234dec4d873afe2f0 /startop/scripts/lib/cmd_utils.py | |
| parent | e8fc3d239979b90187e5f10f6e92494cde622319 (diff) | |
Fix doFadingAnimationLocked in sanitized builds.
The loop as constructed causes i to overflow twice when i = 0 on integer
overflow sanitized builds.
runtime error: unsigned integer overflow: 0 - 1 cannot be represented
in type 'size_t' (aka 'unsigned long')
runtime error: unsigned integer overflow: 18446744073709551615 + 1
cannot be represented in type 'size_t' (aka 'unsigned long')
This refactors the loop to avoid the overflows.
Bug: 30969751
Test: Compiles, device boots, enabled pointer location overlay.
Change-Id: I844bb3b84b1f536c50d06fb489fcc22590d4aa98
Merged-In: I844bb3b84b1f536c50d06fb489fcc22590d4aa98
(cherry picked from commit 7ee0dba09550811040df4d7b494766f7d146e3de)
Diffstat (limited to 'startop/scripts/lib/cmd_utils.py')
0 files changed, 0 insertions, 0 deletions
