From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp58.i.mail.ru (smtp58.i.mail.ru [217.69.128.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id D520C4696F5 for ; Thu, 21 May 2020 23:37:40 +0300 (MSK) From: Vladislav Shpilevoy Date: Thu, 21 May 2020 22:37:27 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 04/10] crc32: disable align sanitizer List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, korablev@tarantool.org, tsafin@tarantool.org, alyapunov@tarantool.org, gorcunov@gmail.com There is some assembly working with a byte array like with an array of unsigned long values. Better allow it to continue working like that with disabled sanitizer, than accidentally break or slow down something here. Part of #4609 --- I am sure there is a way to fix it instead of muting, but I don't know how. Probably there is someone, who understands what is written in this assembly code, and can help. src/cpu_feature.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cpu_feature.c b/src/cpu_feature.c index 98567ccb3..09b6c84ee 100644 --- a/src/cpu_feature.c +++ b/src/cpu_feature.c @@ -29,6 +29,7 @@ * SUCH DAMAGE. */ #include "trivia/config.h" +#include "trivia/util.h" #include #include #include @@ -65,7 +66,7 @@ crc32c_hw_byte(uint32_t crc, unsigned char const *data, unsigned int length) } -uint32_t +NOSANITIZE_ALIGN uint32_t crc32c_hw(uint32_t crc, const char *buf, unsigned int len) { unsigned int iquotient = len / SCALE_F; -- 2.21.1 (Apple Git-122.3)