]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/macro.h
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)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 26 Mar 2018 13:28:03 +0000 (15:28 +0200)
commit989290dbf192b24609fa36379241f2f1edf19d8a
treea282e21424452b0caee741c3d23a78223b24de9a
parent483ed8a6a00a00fbd7ef76e304ee265131207ce8
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
src/fuzz/fuzz-unit-file.c