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

Commit 4c045434 authored by Keith Mok's avatar Keith Mok
Browse files

MPEG4Extractor: Check mLastTrack before parsing mhaC box.

Bug: 191462820
Test: make
Change-Id: Ia1268fce5ed9b64171af3d8ac7489bd1f8c198a0
parent dc58641f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2008,7 +2008,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;
            }