From f22a72c18245b07fdf4e43170516b8875296ebf1 Mon Sep 17 00:00:00 2001 From: tb Date: Sun, 13 Aug 2023 12:25:36 +0000 Subject: [PATCH] sync with userland --- sys/lib/libz/deflate.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/lib/libz/deflate.c b/sys/lib/libz/deflate.c index 2d7a265c00c..4d623325cc0 100644 --- a/sys/lib/libz/deflate.c +++ b/sys/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; -- 2.20.1