diff options
| author | 2015-09-22 14:28:07 -0700 | |
|---|---|---|
| committer | 2015-09-23 00:30:39 +0000 | |
| commit | 1faef80170b71ee4162dc910bfe1aea9d7181e58 (patch) | |
| tree | 43a11e69d69a2a6fbbdb499d398d1aead129e838 /libs/gui/ConsumerBase.cpp | |
| parent | 251c8b3ff842363243c8eea25b369bd805af7aad (diff) | |
Eliminate multiple benign overflow conditions.
In InputTransport.cpp, there are multiple loops in which loop
termination occurs when the value becomes zero. These termination
conditions are all written value-- > 0, which, since value is
unsigned, result in an unsigned integer overflow when value is 0.
These loops were refactored to eliminate these conditions.
Bug: 24171356
Change-Id: Ie135c4306d1f2cef2778e295242305ed5139221a
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions