llvm-project/compiler-rt/test
Max Moroz 10ed68189a Add FuzzedDataProvider helper class / single header library.
Summary:
This class is useful for writing fuzz target that have multiple inputs.

Current CL imports the existing `FuzzedDataProvider` from Chromium
without any modifications. Feel free to review it thoroughly, if you're
interested, but I'd prefer changing the class in a follow up CL.

The CL also introduces an exhaustive test for the library, as the behavior
of `FuzzedDataProvider` must not change over time.

In follow up CLs I'm planning on changing some implementation details
(I can share a doc with some comments to be addressed). After that, we
will document how `FuzzedDataProvider` should be used.

I have tested this on Linux, Windows and Mac platforms.

Reviewers: morehouse, metzman, kcc

Reviewed By: morehouse

Subscribers: metzman, thakis, rnk, mgorny, ormris, delcypher, #sanitizers, llvm-commits

Tags: #llvm, #sanitizers

Differential Revision: https://reviews.llvm.org/D62733

llvm-svn: 363071
2019-06-11 14:30:18 +00:00
..
BlocksRuntime Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
asan [AddressSanitizer] [Windows] Fix HeapReAlloc and _recalloc bugs in asan_malloc_win.cc 2019-04-29 20:26:19 +00:00
builtins [compiler-rt] Make builtins test pass when using i386 gcc as host compiler 2019-05-08 15:50:21 +00:00
cfi compiler-rt tests: Unbreak cmake with LLVM_ENABLE_PIC=OFF on mac 2019-01-16 20:36:27 +00:00
crt [crt] Mark dso_handle test as xfailing on ARM. 2019-05-16 11:13:49 +00:00
dfsan Experimantal dfsan mode "fast16labels=1" 2019-06-08 00:22:23 +00:00
fuzzer Add FuzzedDataProvider helper class / single header library. 2019-06-11 14:30:18 +00:00
gwp_asan [GWP-ASan] Removed unittests from Android build. 2019-06-07 20:56:32 +00:00
hwasan Set an output file name for the override-new-delete.cpp test. 2019-06-07 02:30:58 +00:00
interception
lsan [TSan] Support fiber API on macOS 2019-04-20 00:18:44 +00:00
msan [MSan] Introduce __msan_unpoison_param(). 2019-05-09 21:50:57 +00:00
profile [Profile]: Add runtime interface to specify file handle for profile data (Part-II) 2019-06-06 16:29:44 +00:00
safestack compiler-rt tests: Unbreak cmake with LLVM_ENABLE_PIC=OFF on mac 2019-01-16 20:36:27 +00:00
sanitizer_common [Sanitizer] Add interceptor for wcsdup 2019-05-22 08:34:56 +00:00
scudo [sanitizer] Remove "-android" from test_arch. 2019-02-25 22:32:30 +00:00
shadowcallstack Delete x86_64 ShadowCallStack support 2019-03-07 18:56:36 +00:00
tsan [TSan][libdispatch] Use FileCheck's --implicit-check-not=... 2019-05-16 18:57:36 +00:00
ubsan mac: Make ubsan test config look more like asan test config 2019-05-29 18:54:28 +00:00
ubsan_minimal [compiler-rt][UBSan] Sanitization for alignment assumptions. 2019-01-15 09:44:27 +00:00
xray Add libc++ to link XRay test cases if libc++ is used to build CLANG 2019-05-06 17:45:21 +00:00
.clang-format [compiler-rt] Use "ColumnLimit: 0" instead of "clang-format off" in tests 2018-12-01 01:24:29 +00:00
CMakeLists.txt Reland "[compiler-rt] Simple crtbegin.o and crtend.o implementation" 2019-04-30 18:13:22 +00:00
lit.common.cfg [TSan][libdispatch] Specify libdispatch header dir for lit tests 2019-04-04 17:25:43 +00:00
lit.common.configured.in Add libc++ to link XRay test cases if libc++ is used to build CLANG 2019-05-06 17:45:21 +00:00