This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit b2f1657087a117c52f8cfa2ba981ddb804d3faba
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun Feb 8 00:28:04 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Tue Mar 3 00:48:38 2026 +0100

    avformat/segafilm: dont read uninitialized value
    
    scratch[20] doesnt exist in version 0
    
    Fixes: use of uninitialized memory
    Fixes: 
471664627/clusterfuzz-testcase-minimized-ffmpeg_dem_SEGAFILM_fuzzer-4738726971637760
    
    Found-by: continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
---
 libavformat/segafilm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/segafilm.c b/libavformat/segafilm.c
index 2b853017db..e0ea1da31e 100644
--- a/libavformat/segafilm.c
+++ b/libavformat/segafilm.c
@@ -163,7 +163,7 @@ static int film_read_header(AVFormatContext *s)
         st->codecpar->height = AV_RB32(&scratch[12]);
 
         if (film->video_type == AV_CODEC_ID_RAWVIDEO) {
-            if (scratch[20] == 24) {
+            if (film->version == 0 || scratch[20] == 24) {
                 st->codecpar->format = AV_PIX_FMT_RGB24;
             } else {
                 av_log(s, AV_LOG_ERROR, "raw video is using unhandled 
%dbpp\n", scratch[20]);

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to