summaryrefslogtreecommitdiff
path: root/test/fuzzer/TraceMallocThreadedTest.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2018-07-28 11:06:48 +0000
committerDimitry Andric <dim@FreeBSD.org>2018-07-28 11:06:48 +0000
commit93c1b73a09a52d4a265f683bf1954b08bb430049 (patch)
tree5543464d74945196cc890e9d9099e5d0660df7eb /test/fuzzer/TraceMallocThreadedTest.cpp
parent0d8e7490d6e8a13a8f0977d9b7771803b9f64ea0 (diff)
Notes
Diffstat (limited to 'test/fuzzer/TraceMallocThreadedTest.cpp')
-rw-r--r--test/fuzzer/TraceMallocThreadedTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/fuzzer/TraceMallocThreadedTest.cpp b/test/fuzzer/TraceMallocThreadedTest.cpp
index 5603af344cb7..0183d939af51 100644
--- a/test/fuzzer/TraceMallocThreadedTest.cpp
+++ b/test/fuzzer/TraceMallocThreadedTest.cpp
@@ -7,11 +7,12 @@
#include <cstddef>
#include <cstdint>
#include <cstring>
+#include <cstdlib>
#include <thread>
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
auto C = [&] {
- volatile void *a = malloc(5639);
+ void * volatile a = malloc(5639);
free((void *)a);
};
std::thread T[] = {std::thread(C), std::thread(C), std::thread(C),