From dcc3daf76bb0d33ddbbf39df57be8c4e1cb27aa7 Mon Sep 17 00:00:00 2001 From: Vincent Rabaud Date: Wed, 22 Jul 2026 11:44:27 +0200 Subject: [PATCH] Fix false MSAN warnings --- modules/core/src/hal_internal.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/core/src/hal_internal.cpp b/modules/core/src/hal_internal.cpp index 2274c96f97..30e2a3f42e 100644 --- a/modules/core/src/hal_internal.cpp +++ b/modules/core/src/hal_internal.cpp @@ -379,6 +379,7 @@ lapack_QR(fptype* a, size_t a_step, int m, int n, int k, fptype* b, size_t b_ste else if (typeid(fptype) == typeid(double)) OCV_LAPACK_FUNC(dgels)(mode, &_m, &_n, &_k, (double*)tmpA, &ldtmpA, (double*)b, &_m, (double*)&work1, &lwork, _info); + CV_ANNOTATE_MEMORY_IS_INITIALIZED(info, sizeof(int)); if (*info < 0) return CV_HAL_ERROR_NOT_IMPLEMENTED; @@ -403,6 +404,7 @@ lapack_QR(fptype* a, size_t a_step, int m, int n, int k, fptype* b, size_t b_ste else if (typeid(fptype) == typeid(double)) OCV_LAPACK_FUNC(dgels)(mode, &_m, &_n, &_k, (double*)tmpA, &ldtmpA, (double*)tmpB, &_m, (double*)&work1, &lwork, _info); + CV_ANNOTATE_MEMORY_IS_INITIALIZED(info, sizeof(int)); if (*info < 0) return CV_HAL_ERROR_NOT_IMPLEMENTED; @@ -425,6 +427,7 @@ lapack_QR(fptype* a, size_t a_step, int m, int n, int k, fptype* b, size_t b_ste else if (typeid(fptype) == typeid(double)) dgeqrf_(&_m, &_n, (double*)tmpA, &ldtmpA, (double*)dst, (double*)&work1, &lwork, _info); + CV_ANNOTATE_MEMORY_IS_INITIALIZED(info, sizeof(int)); if (*info < 0) return CV_HAL_ERROR_NOT_IMPLEMENTED;