This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 6ef0b9b0fc3ca02787497e03342f248601183a0b
Author:     zhang xingxing <[email protected]>
AuthorDate: Mon Sep 21 21:38:56 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sun Oct 11 00:44:37 2026 +0000

    avfilter/dnn/dnn_backend_openvino: reject model inputs that are not 
4-dimensional
    
    Found-by: zhang xingxing
    Fixes: out of array read
    Fixes: WobrPAzJQZg5
---
 libavfilter/dnn/dnn_backend_openvino.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavfilter/dnn/dnn_backend_openvino.c 
b/libavfilter/dnn/dnn_backend_openvino.c
index 0df4d585e8..915e5e1a14 100644
--- a/libavfilter/dnn/dnn_backend_openvino.c
+++ b/libavfilter/dnn/dnn_backend_openvino.c
@@ -1086,6 +1086,11 @@ static int get_input_ov(DNNModel *model, DNNData *input, 
const char *input_name)
         av_log(ctx, AV_LOG_ERROR, "Failed to get input port shape.\n");
         return ov2_map_error(status, NULL);
     }
+    if (input_shape.rank != 4) {
+        av_log(ctx, AV_LOG_ERROR, "Input has %"PRId64" dimensions, only 
4-dimensional inputs are supported.\n", input_shape.rank);
+        ov_shape_free(&input_shape);
+        return AVERROR(ENOSYS);
+    }
     for (int i = 0; i < 4; i++)
         input->dims[i] = input_shape.dims[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]

Reply via email to