Mercurial > dropbear
comparison fuzzer-verify.c @ 1456:a90fdd2d2ed8 fuzz
add fuzzer-preauth_nomaths
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 23 Jan 2018 23:05:47 +0800 |
parents | d201105df2ed |
children | 66a1a2547133 |
comparison
equal
deleted
inserted
replaced
1455:4afde04f0607 | 1456:a90fdd2d2ed8 |
---|---|
2 #include "session.h" | 2 #include "session.h" |
3 #include "fuzz-wrapfd.h" | 3 #include "fuzz-wrapfd.h" |
4 #include "debug.h" | 4 #include "debug.h" |
5 | 5 |
6 static void setup_fuzzer(void) { | 6 static void setup_fuzzer(void) { |
7 common_setup_fuzzer(); | 7 fuzz_common_setup(); |
8 } | 8 } |
9 | 9 |
10 static buffer *verifydata; | 10 static buffer *verifydata; |
11 | 11 |
12 /* Tests reading a public key and verifying a signature */ | 12 /* Tests reading a public key and verifying a signature */ |
17 verifydata = buf_new(30); | 17 verifydata = buf_new(30); |
18 buf_putstring(verifydata, "x", 1); | 18 buf_putstring(verifydata, "x", 1); |
19 once = 1; | 19 once = 1; |
20 } | 20 } |
21 | 21 |
22 if (fuzzer_set_input(Data, Size) == DROPBEAR_FAILURE) { | 22 if (fuzz_set_input(Data, Size) == DROPBEAR_FAILURE) { |
23 return 0; | 23 return 0; |
24 } | 24 } |
25 | 25 |
26 m_malloc_set_epoch(1); | 26 m_malloc_set_epoch(1); |
27 | 27 |