summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-08-13 12:25:37 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-08-13 12:25:37 +0000
commite22513034e17b668951192c36f1250cf86fff1fc (patch)
treec91b0f6b673edcc2742d4eed73a51c4d5efb84f8 /sys
parentdc1903dff80a9281f2a8137c311e3eb2986f4705 (diff)
sync with userland
Diffstat (limited to 'sys')
-rw-r--r--sys/lib/libz/deflate.c5
1 files changed, 5 insertions, 0 deletions
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;