1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Fix false MSAN warnings

This commit is contained in:
Vincent Rabaud
2026-07-22 11:44:27 +02:00
parent 8d69623051
commit dcc3daf76b
+3
View File
@@ -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;