mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avformat/mov: fix the check for the heif item parsing loop
Fixes: Null pointer dereference
Fixes: 67861/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5352628142800896
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 31327c2d07
)
This commit is contained in:
parent
96d941b30e
commit
64a048d4cc
@ -9427,7 +9427,8 @@ static int mov_parse_tiles(AVFormatContext *s)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (k == grid->nb_tiles) {
|
if (k == mov->nb_heif_item) {
|
||||||
|
av_assert0(loop);
|
||||||
av_log(s, AV_LOG_WARNING, "HEIF item id %d referenced by grid id %d doesn't "
|
av_log(s, AV_LOG_WARNING, "HEIF item id %d referenced by grid id %d doesn't "
|
||||||
"exist\n",
|
"exist\n",
|
||||||
tile_id, grid->item->item_id);
|
tile_id, grid->item->item_id);
|
||||||
|
Loading…
Reference in New Issue
Block a user