summaryrefslogtreecommitdiff
path: root/lib/fuzzer/FuzzerUtilLinux.cpp
diff options
context:
space:
mode:
authorKamil Rytarowski <n54@gmx.com>2017-08-30 22:44:11 +0000
committerKamil Rytarowski <n54@gmx.com>2017-08-30 22:44:11 +0000
commit2546e2f317fefb7e72208520eb2289c445c5497c (patch)
tree29585bdbb4eeb91a2c3d877606b3bb3176e3e96d /lib/fuzzer/FuzzerUtilLinux.cpp
parentfa6658d33ea125e983be5c94395ddc6e84e4d90b (diff)
Add preliminary NetBSD support in libfuzzer
Summary: This code already works and passes some number of tests. There is need to finish remaining sanitizers to get better coverage. Many tests fail due to overly long file names of executables (>31). This is a current shortcoming of the NetBSD 8(beta) kernel, as certain functions can fail (like retrieving file name of executable). Sponsored by <The NetBSD Foundation> Reviewers: joerg, kcc, vitalybuka, george.karpenkov Reviewed By: kcc Subscribers: mgorny, llvm-commits, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D37304 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@312183 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/fuzzer/FuzzerUtilLinux.cpp')
-rw-r--r--lib/fuzzer/FuzzerUtilLinux.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fuzzer/FuzzerUtilLinux.cpp b/lib/fuzzer/FuzzerUtilLinux.cpp
index dfe7e6f4e..69d46b578 100644
--- a/lib/fuzzer/FuzzerUtilLinux.cpp
+++ b/lib/fuzzer/FuzzerUtilLinux.cpp
@@ -9,7 +9,7 @@
// Misc utils for Linux.
//===----------------------------------------------------------------------===//
#include "FuzzerDefs.h"
-#if LIBFUZZER_LINUX
+#if LIBFUZZER_LINUX || LIBFUZZER_NETBSD
#include <stdlib.h>
@@ -21,4 +21,4 @@ int ExecuteCommand(const std::string &Command) {
} // namespace fuzzer
-#endif // LIBFUZZER_LINUX
+#endif // LIBFUZZER_LINUX || LIBFUZZER_NETBSD