]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Fix oss-fuzz build 2915/head
authorNick Terrell <terrelln@fb.com>
Wed, 8 Dec 2021 18:31:40 +0000 (10:31 -0800)
committerNick Terrell <terrelln@fb.com>
Wed, 8 Dec 2021 19:01:52 +0000 (11:01 -0800)
Disable assembly when dataflow sanitizer is enabled.

This regressed in PR #2893, which accidentally removed the check for
dataflow sanitizer.

lib/common/portability_macros.h

index ef7987d41c0a955eb5066537255c15bac3d138ef..627ef9eed4a008c6636ad1bedce5d136ab1d5d54 100644 (file)
@@ -96,6 +96,8 @@
 #  if defined(__linux__) || defined(__linux) || defined(__APPLE__)
 #    if ZSTD_MEMORY_SANITIZER
 #      define ZSTD_ASM_SUPPORTED 0
+#    elif ZSTD_DATAFLOW_SANITIZER
+#      define ZSTD_ASM_SUPPORTED 0
 #    else
 #      define ZSTD_ASM_SUPPORTED 1
 #    endif