[FFmpeg-devel] [PATCH 05/10] avcodec/vvc/thread: Check frame to be non NULL
Michael Niedermayer
michael at niedermayer.cc
Mon Sep 23 00:56:40 EEST 2024
Fixes: NULL pointer dereference
Fixes: 71303/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VVC_fuzzer-4875859050168320
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
libavcodec/vvc/thread.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/vvc/thread.c b/libavcodec/vvc/thread.c
index 86a7753c6a4..2bf9adc462e 100644
--- a/libavcodec/vvc/thread.c
+++ b/libavcodec/vvc/thread.c
@@ -837,7 +837,8 @@ int ff_vvc_frame_wait(VVCContext *s, VVCFrameContext *fc)
ff_cond_wait(&ft->cond, &ft->lock);
ff_mutex_unlock(&ft->lock);
- ff_vvc_report_frame_finished(fc->ref);
+ if (fc->ref)
+ ff_vvc_report_frame_finished(fc->ref);
#ifdef VVC_THREAD_DEBUG
av_log(s->avctx, AV_LOG_DEBUG, "frame %5d done\r\n", (int)fc->decode_order);
--
2.46.1
More information about the ffmpeg-devel
mailing list