[FFmpeg-cvslog] avformat/mov: dereference pointer after null check
Michael Niedermayer
git at videolan.org
Fri Jan 3 20:04:04 EET 2025
ffmpeg | branch: release/7.1 | Michael Niedermayer <michael at niedermayer.cc> | Wed Dec 11 23:26:02 2024 +0100| [a5ce14389510f6bcd5eaa655668df8ac680a79cd] | committer: Michael Niedermayer
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 at niedermayer.cc>
(cherry picked from commit 954d55c2a4244b366ae97d09546ba8ce2534892b)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a5ce14389510f6bcd5eaa655668df8ac680a79cd
---
libavformat/mov.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index fee1a9ad32..a4c5a2a93c 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -10030,10 +10030,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",
More information about the ffmpeg-cvslog
mailing list