From: tb Date: Sun, 13 Aug 2023 12:25:12 +0000 (+0000) Subject: Conditionally disable MSAN X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b91cf01fdc67e34d6a02d9e15078b50e74167698;p=openbsd Conditionally disable MSAN from upstream --- diff --git a/lib/libz/deflate.c b/lib/libz/deflate.c index c60bb862a92..c9f13669ba4 100644 --- a/lib/libz/deflate.c +++ b/lib/libz/deflate.c @@ -175,6 +175,11 @@ local const config configuration_table[10] = { * bit values at the expense of memory usage). We slide even when level == 0 to * keep the hash table consistent if we switch back to level > 0 later. */ +#if defined(__has_feature) +# if __has_feature(memory_sanitizer) + __attribute__((no_sanitize("memory"))) +# endif +#endif local void slide_hash(deflate_state *s) { unsigned n, m; Posf *p;