summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorIvan Lozano <ivanlozano@google.com>2017-12-06 17:07:27 -0800
committerIvan Lozano <ivanlozano@google.com>2017-12-19 15:54:34 -0800
commit34ff878a0047387d86337daef6076dc328fe1d92 (patch)
tree830b0fb6f0a51953f41eb391fb13f076044e6203 /opengl/tests/gl_basic/gl_basic.cpp
parenta9c7e6d15201dbb701dc1f535689910a581912b0 (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 Merged-In: Ia660dffbee3da9667d5e266cc85798eb458660ac
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions