Mercurial > dropbear
comparison fuzz.h @ 1377:d4cc85e6c569 fuzz
rearrange, all fuzzers now call fuzzer_set_input()
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 25 May 2017 22:21:49 +0800 |
parents | ddfcadca3c4c |
children | f03cfe9c76ac |
comparison
equal
deleted
inserted
replaced
1376:9e9c8d37fd56 | 1377:d4cc85e6c569 |
---|---|
11 | 11 |
12 // once per process | 12 // once per process |
13 void common_setup_fuzzer(void); | 13 void common_setup_fuzzer(void); |
14 void svr_setup_fuzzer(void); | 14 void svr_setup_fuzzer(void); |
15 | 15 |
16 // once per input. returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE | 16 // must be called once per fuzz iteration. |
17 // returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE | |
17 int fuzzer_set_input(const uint8_t *Data, size_t Size); | 18 int fuzzer_set_input(const uint8_t *Data, size_t Size); |
18 | 19 |
19 // fuzzer functions that intrude into general code | 20 // fuzzer functions that intrude into general code |
20 void fuzz_kex_fakealgos(void); | 21 void fuzz_kex_fakealgos(void); |
21 int fuzz_checkpubkey_line(buffer* line, int line_num, char* filename, | 22 int fuzz_checkpubkey_line(buffer* line, int line_num, char* filename, |