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

Git pushed a commit to branch master
in repository ffmpeg.

commit 683623846a205b5be80f99abb78dd6227dacf67c
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Thu Sep 17 23:48:12 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sat Sep 19 19:23:57 2026 +0000

    avformat/dvdvideodec: reject a menu program map entry of zero
    
    Fixes: out of array access
    Fixes: gen_dvd.py with program_map[0]=0
    Found during review of the security fix
---
 libavformat/dvdvideodec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/dvdvideodec.c b/libavformat/dvdvideodec.c
index 315197ad30..544206c67b 100644
--- a/libavformat/dvdvideodec.c
+++ b/libavformat/dvdvideodec.c
@@ -371,7 +371,7 @@ static int dvdvideo_menu_open(AVFormatContext *s, 
DVDVideoPlaybackState *state)
     state->celln_start   = state->pgc->program_map[state->entry_pgn - 1];
     state->celln_end     = state->pgc->nr_of_cells;
     state->celln         = state->celln_start;
-    if (state->celln_start > state->pgc->nr_of_cells) {
+    if (state->celln_start < 1 || state->celln_start > 
state->pgc->nr_of_cells) {
         av_log(s, AV_LOG_ERROR, "Invalid PGC structure: program map points to 
unknown cell\n");
 
         return AVERROR_INVALIDDATA;

-- 
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