summaryrefslogtreecommitdiffhomepage
path: root/tests/fuzz/test-fuzz.c
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2021-03-19 17:04:29 +0100
committerJo-Philipp Wich <jo@mein.io>2021-04-23 00:42:30 +0200
commitdf73b25de218833588a9770f6beb9e4a2908bcb7 (patch)
treedc28a1b956ad7699a13914f896f37295242a4c1e /tests/fuzz/test-fuzz.c
parent41d33d0b2b09efb7b3cddefa2793cf2133a7b5dc (diff)
tests: add more tests
* add cram based tests * test under either valgrind or LLVM sanitizers * add libFuzzer template Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'tests/fuzz/test-fuzz.c')
-rw-r--r--tests/fuzz/test-fuzz.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/fuzz/test-fuzz.c b/tests/fuzz/test-fuzz.c
new file mode 100644
index 0000000..40649e2
--- /dev/null
+++ b/tests/fuzz/test-fuzz.c
@@ -0,0 +1,9 @@
+#include <stdio.h>
+#include <stdint.h>
+#include <stddef.h>
+#include <limits.h>
+
+int LLVMFuzzerTestOneInput(const uint8_t *input, size_t size)
+{
+ return 0;
+}