summaryrefslogtreecommitdiffhomepage
path: root/fuzz.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-05-19 00:48:46 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-05-19 00:48:46 +0800
commite7cdb2ebe5982e4fd881d9ee1e472ad922237b07 (patch)
treea452e928f0798553aa4f27bda068f101c978f897 /fuzz.h
parent4dae8edb76c3c252b681669c16f978477c633c16 (diff)
add wrapfd. improve fuzzer in makefile
--HG-- branch : fuzz
Diffstat (limited to 'fuzz.h')
-rw-r--r--fuzz.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/fuzz.h b/fuzz.h
index e7360e3..c46ded9 100644
--- a/fuzz.h
+++ b/fuzz.h
@@ -6,8 +6,12 @@
#ifdef DROPBEAR_FUZZ
+// once per process
void svr_setup_fuzzer(void);
+// once per input. returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE
+int fuzzer_set_input(const uint8_t *Data, size_t Size);
+
struct dropbear_fuzz_options {
int fuzzing;
@@ -15,7 +19,7 @@ struct dropbear_fuzz_options {
FILE* recordf;
// fuzzing input
- buffer input;
+ buffer *input;
// dropbear_exit() jumps back
sigjmp_buf jmp;