summaryrefslogtreecommitdiff
path: root/fuzzing/setup.h
diff options
context:
space:
mode:
Diffstat (limited to 'fuzzing/setup.h')
-rw-r--r--fuzzing/setup.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/fuzzing/setup.h b/fuzzing/setup.h
new file mode 100644
index 0000000..e67a336
--- /dev/null
+++ b/fuzzing/setup.h
@@ -0,0 +1,15 @@
+/*
+ * Copyright 2023 GNOME Foundation Inc.
+ *
+ * SPDX-License-Identifier: LGPL-2.1-or-later or AFL-2.0
+ */
+
+#include <stddef.h>
+
+void fuzz_teardown (int working_dir_fd);
+int fuzz_setup (const unsigned char *data,
+ size_t data_len,
+ int *working_dir_fd_out);
+
+int LLVMFuzzerTestOneInput (const unsigned char *data,
+ size_t size);