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

Commit ee481c9b authored by Wei Jia's avatar Wei Jia Committed by Android Git Automerger
Browse files

am 47abfa32: Merge "MPEG4Extractor: ensure buffer size is not less than 8 for...

am 47abfa32: Merge "MPEG4Extractor: ensure buffer size is not less than 8 for LastCommentData." into mnc-dev

* commit '47abfa32':
  MPEG4Extractor: ensure buffer size is not less than 8 for LastCommentData.
parents 4802c0c5 47abfa32
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2564,6 +2564,12 @@ status_t MPEG4Extractor::parseITunesMetaData(off64_t offset, size_t size) {
                    mLastCommentName.setTo((const char *)buffer + 4);
                    break;
                case FOURCC('d', 'a', 't', 'a'):
                    if (size < 8) {
                        delete[] buffer;
                        buffer = NULL;
                        ALOGE("b/24346430");
                        return ERROR_MALFORMED;
                    }
                    mLastCommentData.setTo((const char *)buffer + 8);
                    break;
            }