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

Commit fd9cc97d authored by Pawin Vongmasa's avatar Pawin Vongmasa
Browse files

MPEG4Extractor: Check mLastTrack before parsing btrt box.

Bug: 31449945
Change-Id: I3380d494a57bb81f1a7455c64c3ab78da12c382d
parent 20d7cfb6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1767,6 +1767,9 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
        case FOURCC('b', 't', 'r', 't'):
        {
            *offset += chunk_size;
            if (mLastTrack == NULL) {
                return ERROR_MALFORMED;
            }

            uint8_t buffer[12];
            if (chunk_data_size != sizeof(buffer)) {