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

Commit 30aa138d authored by Jon Larimer's avatar Jon Larimer Committed by Android Git Automerger
Browse files

am 8a2dd589: Merge "Fix integer overflow when handling MPEG4 tx3g atom"

* commit '8a2dd589':
  Fix integer overflow when handling MPEG4 tx3g atom
parents c34b6d4b 8a2dd589
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1897,6 +1897,10 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
                size = 0;
            }

            if (SIZE_MAX - chunk_size <= size) {
                return ERROR_MALFORMED;
            }

            uint8_t *buffer = new (std::nothrow) uint8_t[size + chunk_size];
            if (buffer == NULL) {
                return ERROR_MALFORMED;