chiark / gitweb /
fuzz-unit-file: add __has_feature(memory_sanitizer) when skipping ListenNetlink=
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 25 Mar 2018 20:26:13 +0000 (22:26 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commit7c9bebfd22b33d026e66227d9b3a2b33d4a3265b
treeaf84ca96989c9b6ff3cd513dc348a6652abd3b3f
parentd3bc5662dd8436ea2ddcd49d18a48e9a4818bb44
fuzz-unit-file: add __has_feature(memory_sanitizer) when skipping ListenNetlink=

https://clang.llvm.org/docs/MemorySanitizer.html#id5 documents this
check as the way to detect MemorySanitizer at compilation time. We
only need to skip the test if MemorySanitizer is used.

Also, use this condition in cg_slice_to_path(). There, the code that is
conditionalized is not harmful in any way (it's just unnecessary), so remove
the FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION condition.

Fixes #8482.
src/basic/cgroup-util.c
src/basic/macro.h