Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 146f31b6 authored by Dan Austin's avatar Dan Austin Committed by Gerrit Code Review
Browse files

Merge "Eliminate benign overflow condition triggered upon loop termination in Input.cpp"

parents 251c8b3f c94fc45b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -452,7 +452,8 @@ status_t MotionEvent::readFromParcel(Parcel* parcel) {
        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();