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

Commit 1a39e09f authored by Marco Nelissen's avatar Marco Nelissen Committed by gitbuildkicker
Browse files

Fix divide by zero

Bug: 35136163
Change-Id: If074a1c4d595489f4ff4ffc0b8c381d1bc658447
(cherry picked from commit bbc0c8bb)
parent 090534b5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -313,7 +313,7 @@ status_t SampleIterator::findSampleTimeAndDuration(
            break;
        }
        if (mTimeToSampleIndex == mTable->mTimeToSampleCount ||
            mTTSCount > UINT32_MAX / mTTSDuration ||
            (mTTSDuration != 0 && mTTSCount > UINT32_MAX / mTTSDuration) ||
            mTTSSampleTime > UINT32_MAX - (mTTSCount * mTTSDuration)) {
            return ERROR_OUT_OF_RANGE;
        }