1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avformat/mov: dereference pointer after null check

Fixes: null pointer dereference
Fixes: 383397479/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-4776829338058752

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer
2024-12-11 23:26:02 +01:00
parent 9327093079
commit 954d55c2a4

View File

@ -10296,10 +10296,11 @@ static int mov_parse_tiles(AVFormatContext *s)
for (k = 0; k < mov->nb_heif_item; k++) {
HEIFItem *item = mov->heif_item[k];
AVStream *st = item->st;
AVStream *st;
if (!item || item->item_id != tile_id)
continue;
st = item->st;
if (!st) {
av_log(s, AV_LOG_WARNING, "HEIF item id %d from grid id %d doesn't "
"reference a stream\n",