summaryrefslogtreecommitdiff
path: root/lib/libz
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-08-13 12:25:13 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-08-13 12:25:13 +0000
commitdc1903dff80a9281f2a8137c311e3eb2986f4705 (patch)
tree651273cb93de4659ea6a136b4e7b823c4f5881f0 /lib/libz
parenta819ec19c45f26fc2e33493e9b02a4c85e4d0ce9 (diff)
Conditionally disable MSAN
from upstream
Diffstat (limited to 'lib/libz')
-rw-r--r--lib/libz/deflate.c5
1 files changed, 5 insertions, 0 deletions
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;