diff options
author | Wei Jia <wjia@google.com> | 2015-10-06 20:04:52 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-10-06 20:04:52 +0000 |
commit | 3674abc050997e664c3906b8507d9d4b63d52e9d (patch) | |
tree | 2ad60dc1efbd8cd418066add38e83968f79456a9 | |
parent | a0c94bc6582dde27ed31fbb771d7eb758fb9adbe (diff) | |
parent | fb0d63df2393a5e20cbb16d90ed5c01295a81836 (diff) | |
download | frameworks_av-3674abc050997e664c3906b8507d9d4b63d52e9d.zip frameworks_av-3674abc050997e664c3906b8507d9d4b63d52e9d.tar.gz frameworks_av-3674abc050997e664c3906b8507d9d4b63d52e9d.tar.bz2 |
am fb0d63df: am 62d89908: am df68d9d5: am 60b25aa0: am 9ab9c85e: Merge "MPEG4Extractor: ensure buffer size is not less than 8 for LastCommentData." into klp-dev
* commit 'fb0d63df2393a5e20cbb16d90ed5c01295a81836':
MPEG4Extractor: ensure buffer size is not less than 8 for LastCommentData.
-rw-r--r-- | media/libstagefright/MPEG4Extractor.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/media/libstagefright/MPEG4Extractor.cpp b/media/libstagefright/MPEG4Extractor.cpp index 66a3793..69eab99 100644 --- a/media/libstagefright/MPEG4Extractor.cpp +++ b/media/libstagefright/MPEG4Extractor.cpp @@ -2350,6 +2350,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; } |