This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 21c4aad65484a393746cea30af49a4abfb46d413 Author: Michael Niedermayer <[email protected]> AuthorDate: Mon Oct 12 02:41:46 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Tue Oct 20 02:25:09 2026 +0000 avfilter/dnn_backend_openvino: set the number of outputs together with the output ports Fixes: NULL pointer dereference Fixes: gJMHsT6GErl5 Regression since: 22652b576c Found during triage of the review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24617 NULL pointer dereference Replicated through UnModified FFmpeg with ASAN --- libavfilter/dnn/dnn_backend_openvino.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/dnn/dnn_backend_openvino.c b/libavfilter/dnn/dnn_backend_openvino.c index a5c3be835d..d134beed12 100644 --- a/libavfilter/dnn/dnn_backend_openvino.c +++ b/libavfilter/dnn/dnn_backend_openvino.c @@ -682,7 +682,6 @@ static int init_model_ov(OVModel *ov_model, const char *input_name, const char * } nb_outputs = output_size; } - ov_model->nb_outputs = nb_outputs; for (int i = 0; i < nb_outputs; i++) { if (output_names) status = ov_preprocess_prepostprocessor_get_output_info_by_name( @@ -764,6 +763,7 @@ static int init_model_ov(OVModel *ov_model, const char *input_name, const char * ret = AVERROR(ENOMEM); goto err; } + ov_model->nb_outputs = nb_outputs; } else for (int i = 0; i < nb_outputs; i++) { ov_output_const_port_free(ov_model->output_ports[i]); -- 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]
