Loading media/extractors/mp4/ItemTable.cpp +2 −1 Original line number Original line Diff line number Diff line Loading @@ -1397,7 +1397,8 @@ status_t ItemTable::buildImageItemsIfPossible(uint32_t type) { ALOGV("adding %s: itemId %d", image.isGrid() ? "grid" : "image", info.itemId); ALOGV("adding %s: itemId %d", image.isGrid() ? "grid" : "image", info.itemId); if (image.isGrid()) { if (image.isGrid()) { if (size > 12) { // ImageGrid struct is at least 8-byte, at most 12-byte (if flags&1) if (size < 8 || size > 12) { return ERROR_MALFORMED; return ERROR_MALFORMED; } } uint8_t buf[12]; uint8_t buf[12]; Loading Loading
media/extractors/mp4/ItemTable.cpp +2 −1 Original line number Original line Diff line number Diff line Loading @@ -1397,7 +1397,8 @@ status_t ItemTable::buildImageItemsIfPossible(uint32_t type) { ALOGV("adding %s: itemId %d", image.isGrid() ? "grid" : "image", info.itemId); ALOGV("adding %s: itemId %d", image.isGrid() ? "grid" : "image", info.itemId); if (image.isGrid()) { if (image.isGrid()) { if (size > 12) { // ImageGrid struct is at least 8-byte, at most 12-byte (if flags&1) if (size < 8 || size > 12) { return ERROR_MALFORMED; return ERROR_MALFORMED; } } uint8_t buf[12]; uint8_t buf[12]; Loading