commit | 1faef80170b71ee4162dc910bfe1aea9d7181e58 | [log] [tgz] |
---|---|---|
author | Dan Austin <danielaustin@google.com> | Tue Sep 22 14:28:07 2015 -0700 |
committer | Dan Austin <danielaustin@google.com> | Wed Sep 23 00:30:39 2015 +0000 |
tree | 43a11e69d69a2a6fbbdb499d398d1aead129e838 | |
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