diff options
author | Matt Johnston <matt@ucc.asn.au> | 2017-05-19 00:48:46 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2017-05-19 00:48:46 +0800 |
commit | e7cdb2ebe5982e4fd881d9ee1e472ad922237b07 (patch) | |
tree | a452e928f0798553aa4f27bda068f101c978f897 /fuzz.h | |
parent | 4dae8edb76c3c252b681669c16f978477c633c16 (diff) |
add wrapfd. improve fuzzer in makefile
--HG--
branch : fuzz
Diffstat (limited to 'fuzz.h')
-rw-r--r-- | fuzz.h | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |