From 1ff0a5430e63600f65b006513ac16d15b577d5b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Mar=C3=ADn?= Date: Fri, 9 Feb 2024 11:08:54 +0100 Subject: [PATCH] Fix unpoison call --- src/Common/memcmpSmall.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Common/memcmpSmall.h b/src/Common/memcmpSmall.h index 0b05b4a53bd..103eabb5b8d 100644 --- a/src/Common/memcmpSmall.h +++ b/src/Common/memcmpSmall.h @@ -661,8 +661,8 @@ inline bool memequalSmallAllowOverflow15(const Char * a, size_t a_size, const Ch if (a_size != b_size) return false; - __msan_unpoison(&a[a_size - a_size % 16], a_size % 16); - __msan_unpoison(&b[b_size - b_size % 16], b_size % 16); + __msan_unpoison_overflow_15(a, a_size); + __msan_unpoison_overflow_15(b, b_size); for (size_t offset = 0; offset < a_size; offset += 16) {