mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-02-10 03:49:54 +00:00
avformat/mov: Check that sample_count is allocated in mov_parse_heif_items()
Fixes: NULL pointer dereference Fixes: 416811958/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-5425269114732544 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
36c8eef42c
commit
0ffe97d9b9
1 changed files with 1 additions and 1 deletions
|
|
@ -10341,7 +10341,7 @@ static int mov_parse_heif_items(AVFormatContext *s)
|
|||
st->codecpar->height = item->height;
|
||||
|
||||
err = sanity_checks(s, sc, item->item_id);
|
||||
if (err)
|
||||
if (err || !sc->sample_count)
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
sc->sample_sizes[0] = item->extent_length;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue