[FFmpeg-cvslog] avcodec/vvc/thread: Check frame to be non NULL

Nuo Mi git at videolan.org
Sun Oct 20 15:39:46 EEST 2024


ffmpeg | branch: master | Nuo Mi <nuomi2021 at gmail.com> | Mon Oct 14 23:25:32 2024 +0800| [b61141056939acfd67e51dbd05c2c8c729d6b31b] | committer: Nuo Mi

avcodec/vvc/thread: Check frame to be non NULL

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
Reported-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b61141056939acfd67e51dbd05c2c8c729d6b31b
---

 libavcodec/vvc/dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/vvc/dec.c b/libavcodec/vvc/dec.c
index 9b7afe4c38..4bb79feea3 100644
--- a/libavcodec/vvc/dec.c
+++ b/libavcodec/vvc/dec.c
@@ -996,7 +996,7 @@ static int vvc_decode_frame(AVCodecContext *avctx, AVFrame *output,
     if (ret < 0)
         return ret;
 
-    if (!fc->ft)
+    if (!fc->ft || !fc->ref)
         return avpkt->size;
 
     ret = submit_frame(s, fc, output, got_output);



More information about the ffmpeg-cvslog mailing list