diff options
author | 2017-12-06 17:07:27 -0800 | |
---|---|---|
committer | 2017-12-06 17:08:18 -0800 | |
commit | 51a0b41a6bb7378fd60e96bfb87b820948960187 (patch) | |
tree | 7b00bdafaf90159439a6d90de7b66f5906e83477 /libs/gui/BufferItem.cpp | |
parent | 5b4cffc352f7f5d3711d4b7798a07434a998b2d7 (diff) |
Fix sanitizer in handleTransitionLocked.
The loop as constructed in handleTransitionLocked potentially leads to
two unsigned integer overflows on the i = 0 loop on integer 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 prevent the overflow.
Bug: 30969751
Test: Compiles, device boots.
Change-Id: Ia660dffbee3da9667d5e266cc85798eb458660ac
Diffstat (limited to 'libs/gui/BufferItem.cpp')
0 files changed, 0 insertions, 0 deletions