This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 9c176644aa avformat/scd: reject zero-channel tracks
9c176644aa is described below
commit 9c176644aadb80ff1dfc65dc9d73f132ab81c999
Author: qaq03101 <[email protected]>
AuthorDate: Fri Jul 17 14:05:55 2026 +0800
Commit: michaelni <[email protected]>
CommitDate: Sun Aug 9 17:24:59 2026 +0000
avformat/scd: reject zero-channel tracks
A zero channel count can cause a division by zero in
scd_read_packet().
Reported-by: sdjasj
Fixes #23181.
Signed-off-by: qaq03101 <[email protected]>
---
libavformat/scd.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/scd.c b/libavformat/scd.c
index 091d20824c..6c0c41486d 100644
--- a/libavformat/scd.c
+++ b/libavformat/scd.c
@@ -182,7 +182,8 @@ static int scd_read_track(AVFormatContext *s,
SCDTrackHeader *track, int index)
track->aux_count = AV_RB32(buf + 28);
/* Sanity checks */
- if (track->num_channels > 8 || track->sample_rate >= 192000 ||
+ if (!track->num_channels || track->num_channels > 8 ||
+ track->sample_rate >= 192000 ||
track->loop_start > track->loop_end)
return AVERROR_INVALIDDATA;
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]