Mercurial > dropbear
comparison fuzz.h @ 1740:dfbe947bdf0d fuzz
Make wrapfd share a common buffer for all FDs
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 15 Oct 2020 22:46:24 +0800 |
parents | 35af85194268 |
children | d1b279aa5ed1 |
comparison
equal
deleted
inserted
replaced
1739:13d834efc376 | 1740:dfbe947bdf0d |
---|---|
29 extern const char * const * fuzz_signkey_names; | 29 extern const char * const * fuzz_signkey_names; |
30 void fuzz_seed(void); | 30 void fuzz_seed(void); |
31 void fuzz_get_socket_address(int fd, char **local_host, char **local_port, | 31 void fuzz_get_socket_address(int fd, char **local_host, char **local_port, |
32 char **remote_host, char **remote_port, int host_lookup); | 32 char **remote_host, char **remote_port, int host_lookup); |
33 void fuzz_fake_send_kexdh_reply(void); | 33 void fuzz_fake_send_kexdh_reply(void); |
34 int fuzz_spawn_command(int *ret_writefd, int *ret_readfd, int *ret_errfd, pid_t *ret_pid); | |
34 | 35 |
35 // fake IO wrappers | 36 // fake IO wrappers |
36 #ifndef FUZZ_SKIP_WRAP | 37 #ifndef FUZZ_SKIP_WRAP |
37 #define select(nfds, readfds, writefds, exceptfds, timeout) \ | 38 #define select(nfds, readfds, writefds, exceptfds, timeout) \ |
38 wrapfd_select(nfds, readfds, writefds, exceptfds, timeout) | 39 wrapfd_select(nfds, readfds, writefds, exceptfds, timeout) |