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

Commit 4beeabc5 authored by Keith Mok's avatar Keith Mok Committed by Android (Google) Code Review
Browse files

Merge "MPEG4Extractor: Check mLastTrack before parsing mhaC box."

parents 178347b9 4c045434
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2007,7 +2007,7 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
            uint8_t mhac_header[mhac_header_size];
            off64_t data_offset = *offset;

            if (chunk_size < sizeof(mhac_header)) {
            if (mLastTrack == NULL || chunk_size < sizeof(mhac_header)) {
                return ERROR_MALFORMED;
            }