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

Commit ccfffbcc authored by Jon Larimer's avatar Jon Larimer Committed by Gerrit Code Review
Browse files

Merge "Fix integer underflow in covr MPEG4 processing"

parents e963611e 4ec8ab47
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1938,6 +1938,10 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
                    return ERROR_IO;
                }
                const int kSkipBytesOfDataBox = 16;
                if (chunk_data_size <= kSkipBytesOfDataBox) {
                    return ERROR_MALFORMED;
                }

                mFileMetaData->setData(
                    kKeyAlbumArt, MetaData::TYPE_NONE,
                    buffer->data() + kSkipBytesOfDataBox, chunk_data_size - kSkipBytesOfDataBox);