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

Commit 695b5896 authored by Jon Larimer's avatar Jon Larimer Committed by Android Git Automerger
Browse files

am 17a0b817: Merge "Fix integer overflow during MP4 atom processing"

* commit '17a0b817':
  Fix integer overflow during MP4 atom processing
parents 253d6bcf 17a0b817
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -230,6 +230,9 @@ status_t SampleTable::setSampleToChunkParams(
        return ERROR_MALFORMED;
    }

    if (SIZE_MAX / sizeof(SampleToChunkEntry) <= mNumSampleToChunkOffsets)
        return ERROR_OUT_OF_RANGE;

    mSampleToChunkEntries =
        new SampleToChunkEntry[mNumSampleToChunkOffsets];