mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 13:21:28 +00:00
Bug 1206211: P2. Abort on OOM. r=kentuckyfriedtakahe
This commit is contained in:
parent
5414266df5
commit
b048d19b03
@ -516,6 +516,9 @@ status_t MPEG4Extractor::readMetaData() {
|
||||
}
|
||||
if (psshsize) {
|
||||
char *buf = (char*)malloc(psshsize);
|
||||
if (!buf) {
|
||||
return ERROR_MALFORMED;
|
||||
}
|
||||
char *ptr = buf;
|
||||
for (size_t i = 0; i < mPssh.Length(); i++) {
|
||||
memcpy(ptr, mPssh[i].uuid, 20); // uuid + length
|
||||
|
Loading…
x
Reference in New Issue
Block a user