[FFmpeg-devel] [PATCH 3/5] avcodec/decode: Check progress before dereferencing

Michael Niedermayer michael at niedermayer.cc
Sat Apr 27 02:52:09 EEST 2024


Fixes: NULL pointer dereference
Fixes: 68192/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VP8_fuzzer-6180311026171904

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/decode.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/decode.c b/libavcodec/decode.c
index d031b1ca176..a6131941f43 100644
--- a/libavcodec/decode.c
+++ b/libavcodec/decode.c
@@ -1744,6 +1744,8 @@ void ff_progress_frame_report(ProgressFrame *f, int n)
 
 void ff_progress_frame_await(const ProgressFrame *f, int n)
 {
+    if (!f->progress)
+        return;
     ff_thread_progress_await(&f->progress->progress, n);
 }
 
-- 
2.43.2



More information about the ffmpeg-devel mailing list