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

Git pushed a commit to branch master
in repository ffmpeg.

commit e7f4912140d5d47c08d2c3fa49f9167972a79afe
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Thu Nov 12 01:20:32 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Tue Nov 17 03:59:35 2026 +0000

    avfilter/f_streamselect: reject a map with more entries than outputs
    
    Fixes: out of array read
    Fixes: wShaWIYvxHRE
    
    Found during the triage of a finding from the review of 
https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25800
    
    Out of array read Replicated through UnModified FFmpeg with ASAN
---
 libavfilter/f_streamselect.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/f_streamselect.c b/libavfilter/f_streamselect.c
index cce74b6dde..f9702b81ce 100644
--- a/libavfilter/f_streamselect.c
+++ b/libavfilter/f_streamselect.c
@@ -225,7 +225,7 @@ static int parse_mapping(AVFilterContext *ctx, const char 
*map)
         new_map[new_nb_map++] = n;
     }
 
-    if (!new_nb_map) {
+    if (!new_nb_map || new_nb_map > ctx->nb_outputs) {
         av_log(ctx, AV_LOG_ERROR, "invalid mapping\n");
         av_free(new_map);
         return AVERROR(EINVAL);

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to