From 5755c93d5c2acae74a07efb230eda6c91e7e9b5e Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Thu, 25 Jul 2019 01:31:39 +0300 Subject: [PATCH] Fixed MSan report --- dbms/src/Common/memcmpSmall.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dbms/src/Common/memcmpSmall.h b/dbms/src/Common/memcmpSmall.h index 13269a13b29..8d69209b4ef 100644 --- a/dbms/src/Common/memcmpSmall.h +++ b/dbms/src/Common/memcmpSmall.h @@ -3,7 +3,13 @@ #include #include -#ifdef __SSE2__ +#include + +/// We can process uninitialized memory in the functions below. +/// Results don't depend on the values inside uninitialized memory but Memory Sanitizer cannot see it. +/// Disable optimized functions if compile with Memory Sanitizer. + +#if defined(__SSE2__) && !defined(MEMORY_SANITIZER) #include