This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 0b1c279b62af82e422e3fc21ba6cc2fc3154dc76 Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Oct 6 07:19:23 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Tue Oct 13 02:29:51 2026 +0000 avformat/wavenc: Reject peak envelope writing without channels The fix is the one recommended in the report. Fixes: out of array write Fixes: LHiad3FmdAmI Fixes: AISLE-2026-0111-00337 Out of array write Replicated through UnModified FFmpeg with ASAN Found-by: Joshua Rogers <[email protected]> --- libavformat/wavenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/wavenc.c b/libavformat/wavenc.c index c9ced4a1bd..9de3f7b789 100644 --- a/libavformat/wavenc.c +++ b/libavformat/wavenc.c @@ -194,7 +194,8 @@ static av_cold int peak_init_writer(AVFormatContext *s) "Writing 16 bit peak for 8 bit audio does not make sense\n"); return AVERROR(EINVAL); } - if (par->ch_layout.nb_channels > INT_MAX / (wav->peak_bps * wav->peak_ppv)) + if (par->ch_layout.nb_channels <= 0 || + par->ch_layout.nb_channels > INT_MAX / (wav->peak_bps * wav->peak_ppv)) return AVERROR(ERANGE); wav->size_increment = par->ch_layout.nb_channels * wav->peak_bps * wav->peak_ppv; -- 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]
