Merge branch 'maint-0.4.8'
[tor.git] / src / test / fuzz / fuzz_address.c
blob6dccd65e9d06b513c46f6176a19a787e63fbe772
1 #include "lib/net/address.h"
2 #include "lib/malloc/malloc.h"
4 #include "test/fuzz/fuzzing.h"
6 int
7 fuzz_init(void)
9 return 0;
12 int
13 fuzz_cleanup(void)
15 return 0;
18 int
19 fuzz_main(const uint8_t *data, size_t sz)
21 tor_addr_t addr;
22 char *fuzzing_data = tor_memdup_nulterm(data, sz);
23 tor_addr_parse(&addr, fuzzing_data);
24 tor_free(fuzzing_data);
25 return 0;