diff options
author | Kamil Rytarowski <n54@gmx.com> | 2017-08-30 22:44:11 +0000 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2017-08-30 22:44:11 +0000 |
commit | 8da2722a9f5146067ce650583ea6b32eaa663c8a (patch) | |
tree | fa49041a525a579cc69d96fcf9ceca7df3e803a8 /compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp | |
parent | 76794daf05456edd3042906fd2670ea7a32e977c (diff) | |
download | bcm5719-llvm-8da2722a9f5146067ce650583ea6b32eaa663c8a.tar.gz bcm5719-llvm-8da2722a9f5146067ce650583ea6b32eaa663c8a.zip |
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
llvm-svn: 312183
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp')
-rw-r--r-- | compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp b/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp index dfe7e6f4e18..69d46b578c0 100644 --- a/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp +++ b/compiler-rt/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 |