This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit d219be03d6ce23da7bbf8781d27bd5163630000c Author: Marvin Scholz <[email protected]> AuthorDate: Wed Dec 10 01:06:26 2025 +0100 Commit: Marvin Scholz <[email protected]> CommitDate: Mon Feb 23 15:29:27 2026 +0000 lavc: wmadec: assert channels count This should never exceed MAX_CHANNELS, else there will be several out of bounds writes. --- libavcodec/wmadec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index 3b1c617e84..e924784ec5 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -36,6 +36,7 @@ #include "config_components.h" #include "libavutil/attributes.h" +#include "libavutil/avassert.h" #include "libavutil/ffmath.h" #include "avcodec.h" @@ -454,6 +455,8 @@ static int wma_decode_block(WMACodecContext *s) AVTXContext *mdct; av_tx_fn mdct_fn; + av_assert2(channels <= MAX_CHANNELS); + #ifdef TRACE ff_tlog(s->avctx, "***decode_block: %d:%d\n", s->frame_count - 1, s->block_num); _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
