commit | ad2a1592cf01a5393ad645fea81b6c36ee11f73e | [log] [tgz] |
---|---|---|
author | Dan Austin <danielaustin@google.com> | Wed Sep 23 14:45:51 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Sep 23 14:45:51 2015 +0000 |
tree | 71fd1f66762ca1dbb46344db9f662814f4d7f11b | |
parent | 146f31b6c44f557270779106e95c769783270fed [diff] | |
parent | 389ddbad52b32beeee6d3f361145b7431bae3536 [diff] |
Merge "Enable multiple benign overflow conditions."
diff --git a/libs/input/Input.cpp b/libs/input/Input.cpp index 69a6432..ecd2d90 100644 --- a/libs/input/Input.cpp +++ b/libs/input/Input.cpp
@@ -452,7 +452,8 @@ properties.toolType = parcel->readInt32(); } - while (sampleCount-- > 0) { + while (sampleCount > 0) { + sampleCount--; mSampleEventTimes.push(parcel->readInt64()); for (size_t i = 0; i < pointerCount; i++) { mSamplePointerCoords.push();