Loading media/libstagefright/MPEG4Extractor.cpp +4 −0 Original line number Original line Diff line number Diff line Loading @@ -1897,6 +1897,10 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) { size = 0; size = 0; } } if (SIZE_MAX - chunk_size <= size) { return ERROR_MALFORMED; } uint8_t *buffer = new (std::nothrow) uint8_t[size + chunk_size]; uint8_t *buffer = new (std::nothrow) uint8_t[size + chunk_size]; if (buffer == NULL) { if (buffer == NULL) { return ERROR_MALFORMED; return ERROR_MALFORMED; Loading Loading
media/libstagefright/MPEG4Extractor.cpp +4 −0 Original line number Original line Diff line number Diff line Loading @@ -1897,6 +1897,10 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) { size = 0; size = 0; } } if (SIZE_MAX - chunk_size <= size) { return ERROR_MALFORMED; } uint8_t *buffer = new (std::nothrow) uint8_t[size + chunk_size]; uint8_t *buffer = new (std::nothrow) uint8_t[size + chunk_size]; if (buffer == NULL) { if (buffer == NULL) { return ERROR_MALFORMED; return ERROR_MALFORMED; Loading