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

Commit 7cf29147 authored by Dongwon Kang's avatar Dongwon Kang
Browse files

Fix potential integer overflow in MPEG4Extractor

Test: build
Bug: 111792351
Change-Id: Ib21ce33fb6c473c217f1f2a35e2ce1c81256f22f
parent 9b248b87
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5142,7 +5142,7 @@ status_t MPEG4Source::parseTrackFragmentRun(off64_t offset, off64_t size) {
        sampleCtsOffset = 0;
    }

    if (size < (off64_t)(sampleCount * bytesPerSample)) {
    if (size < (off64_t)sampleCount * bytesPerSample) {
        return -EINVAL;
    }