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

Commit 47759307 authored by Nick Kralevich's avatar Nick Kralevich Committed by Android Git Automerger
Browse files

am 17b625b7: Merge "Fix integer overflow during MP4 atom processing" into klp-dev

* commit '17b625b7':
  Fix integer overflow during MP4 atom processing
parents 4a131250 17b625b7
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];