This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 279f225d98da287c9aee789fe4f9a20cd27b5032 Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Sep 29 00:56:10 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Sun Oct 11 00:46:36 2026 +0000 avfilter/af_arnndn: require the model layers to fit the network compute_rnn() runs Reject a model whose layer sizes do not follow these relations. All published rnnoise-nu models follow them. The fix suggested in the report bounded the vad_output and denoise_output inputs by the aligned state allocations instead. Fixes: heap-buffer-overflow Fixes: BiaeRPmt9wwq Found-by: Hongduo Zhao --- libavfilter/af_arnndn.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/libavfilter/af_arnndn.c b/libavfilter/af_arnndn.c index 6209f1b0e0..7277a7258c 100644 --- a/libavfilter/af_arnndn.c +++ b/libavfilter/af_arnndn.c @@ -317,7 +317,14 @@ static int rnnoise_model_from_file(FILE *f, RNNModel **rnn) INPUT_DENSE(denoise_output); INPUT_DENSE(vad_output); - if (vad_output->nb_neurons != 1) { + if (input_dense->nb_inputs != NB_FEATURES || + vad_gru->nb_inputs != input_dense->nb_neurons || + noise_gru->nb_inputs != input_dense->nb_neurons + vad_gru->nb_neurons + NB_FEATURES || + denoise_gru->nb_inputs != vad_gru->nb_neurons + noise_gru->nb_neurons + NB_FEATURES || + denoise_output->nb_inputs != denoise_gru->nb_neurons || + denoise_output->nb_neurons != NB_BANDS || + vad_output->nb_inputs != vad_gru->nb_neurons || + vad_output->nb_neurons != 1) { rnnoise_model_free(ret); return AVERROR(EINVAL); } -- 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]
