OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[Template plugin] Fix Coverity NULL_FIELD dereference in infer_preprocess (#37899)
Alicja Miloszewska4977f92a234f
diff --git a/src/plugins/template/src/sync_infer_request.cpp b/src/plugins/template/src/sync_infer_request.cppindex 0a0255a03fb..d6ec983df32 100644--- a/src/plugins/template/src/sync_infer_request.cpp+++ b/src/plugins/template/src/sync_infer_request.cpp@@ -199,6 +199,8 @@ void ov::template_plugin::InferRequest::infer_preprocess() {tensor->get_shape());auto backend_tensor_impl = ov::get_tensor_impl(m_backend_input_tensors[i]);OPENVINO_ASSERT(backend_tensor_impl, "Failed to create backend tensor");+ // `OPENVINO_ASSERT' above guarantees `backend_tensor_impl._ptr' is non-null+ // coverity[null_field:FALSE]tensor->copy_to(backend_tensor_impl._ptr);}}