summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorDan Austin <danielaustin@google.com>2015-09-22 14:22:41 -0700
committerDan Austin <danielaustin@google.com>2015-09-22 14:38:51 -0700
commitc94fc45bc5c07724e63e4da5151cfea90bd87986 (patch)
tree02d2ebea2ff0e45ab0de00664363eb3d2b42e88e /opengl/tests/gl_basic/gl_basic.cpp
parent251c8b3ff842363243c8eea25b369bd805af7aad (diff)
Eliminate benign overflow condition triggered upon loop termination in Input.cpp
In readFromParcel, a while loop is terminated when sampleCount = 0. The decrement operation that was here would decrease sampleCount, an unsigned value, below 0, triggering an unsigned integer overflow. The while loop was refactored to eliminate this condition. Bug: 24171356 Change-Id: I7669f54a41d11548b33e322b025431c6f6038952
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions