From 44c46e545a4ad671c7dfe85fe257a857d776fc3e Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Tue, 17 Jan 2023 13:26:59 +0100 Subject: [PATCH] Fix compilation with msan --- modules/core/src/hal_internal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/src/hal_internal.cpp b/modules/core/src/hal_internal.cpp index c5b1687b15..53b355a44f 100644 --- a/modules/core/src/hal_internal.cpp +++ b/modules/core/src/hal_internal.cpp @@ -254,7 +254,7 @@ lapack_SVD(fptype* a, size_t a_step, fptype *w, fptype* u, size_t u_step, fptype // Make sure MSAN sees the memory as having been written. // MSAN does not think it has been written because a different language is called. // Note: we do this here because if dgesdd is C++, MSAN errors can be reported within it. - CV_ANNOTATE_MEMORY_IS_INITIALIZED(buffer, sizeof(fptype) * (lwork + 1)); + CV_ANNOTATE_MEMORY_IS_INITIALIZED(buffer.data(), sizeof(fptype) * (lwork + 1)); if(typeid(fptype) == typeid(float)) OCV_LAPACK_FUNC(sgesdd)(mode, &m, &n, (float*)a, &lda, (float*)w, (float*)u, &ldu,