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

Commit dfdf3308 authored by Santiago Seifert's avatar Santiago Seifert
Browse files

Remove assertion over parser media

This prevents the crash of the media.extractor process, allowing
instead more graceful handling.

Change-Id: I26dd46e23d114b2417856868874d84419a622d71
Test: Fuzzer instructions in b/177617358.
Bug: 187386344
parent ffe033da
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -2460,7 +2460,9 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
        case FOURCC("dvcC"):
        case FOURCC("dvcC"):
        case FOURCC("dvvC"): {
        case FOURCC("dvvC"): {


            CHECK_EQ(chunk_data_size, 24);
            if (chunk_data_size != 24) {
                return ERROR_MALFORMED;
            }


            auto buffer = heapbuffer<uint8_t>(chunk_data_size);
            auto buffer = heapbuffer<uint8_t>(chunk_data_size);