This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 5cb9fcd21167cf2f5a2852ea582997bbd0055521 Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Oct 6 23:38:45 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Fri Oct 16 11:39:44 2026 +0000 avformat/mxfenc: Reject D-10 audio with more than 8 channels The D-10 AES3 element has 8 channels (SMPTE 386M). Fixes: invalid shift Fixes: dAUa8TJu8sCA Invalid shift Replicated through UnModified FFmpeg with UBSAN Found during triage of the security report jQbdKiuH8zFh --- libavformat/mxfenc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index f3a054d933..fd303ac750 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -3050,6 +3050,10 @@ static int mxf_init(AVFormatContext *s) av_log(s, AV_LOG_ERROR, "MXF D-10 only support 16 or 24 bits le audio\n"); return AVERROR_PATCHWELCOME; } + if (st->codecpar->ch_layout.nb_channels > 8) { + av_log(s, AV_LOG_ERROR, "MXF D-10 supports at most 8 audio channels\n"); + return AVERROR(EINVAL); + } sc->index = INDEX_D10_AUDIO; sc->container_ul = ((MXFStreamContext*)s->streams[0]->priv_data)->container_ul; sc->frame_size = 4 + 8 * av_rescale_rnd(st->codecpar->sample_rate, mxf->time_base.num, mxf->time_base.den, AV_ROUND_UP) * 4; -- 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]
