Commit f69151b0f9 for ffmpeg
commit f69151b0f9ddf0be5b8d8264b11e7ba0b72abad1
Author: Michael Niedermayer <michael@niedermayer.cc>
Date: Tue Oct 6 06:56:00 2026 +0200
avformat/mxfenc: Fail on unsupported D-10 audio codecs
Fixes: out of array read
Fixes: jQbdKiuH8zFh
Fixes: AISLE-2026-0111-00598
Out of array read Replicated through UnModified FFmpeg with ASAN
Found-by: Joshua Rogers <joshua.rogers@aisle.com>
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index 48043a7d47..37b62dbd2b 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -3048,6 +3048,7 @@ static int mxf_init(AVFormatContext *s)
if (st->codecpar->codec_id != AV_CODEC_ID_PCM_S16LE &&
st->codecpar->codec_id != AV_CODEC_ID_PCM_S24LE) {
av_log(s, AV_LOG_ERROR, "MXF D-10 only support 16 or 24 bits le audio\n");
+ return AVERROR_PATCHWELCOME;
}
sc->index = INDEX_D10_AUDIO;
sc->container_ul = ((MXFStreamContext*)s->streams[0]->priv_data)->container_ul;