comparison fuzz-common.c @ 1383:f03cfe9c76ac fuzz

Disable setnonblocking(), get_socket_address(), set_sock_priority() for fuzzing
author Matt Johnston <matt@ucc.asn.au>
date Fri, 26 May 2017 22:10:51 +0800
parents d4cc85e6c569
children 6c92e97553f1
comparison
equal deleted inserted replaced
1382:4b864fd12b22 1383:f03cfe9c76ac
113 } 113 }
114 114
115 void fuzz_kex_fakealgos(void) { 115 void fuzz_kex_fakealgos(void) {
116 ses.newkeys->recv.crypt_mode = &dropbear_mode_none; 116 ses.newkeys->recv.crypt_mode = &dropbear_mode_none;
117 } 117 }
118
119 void fuzz_get_socket_address(int UNUSED(fd), char **local_host, char **local_port,
120 char **remote_host, char **remote_port, int UNUSED(host_lookup)) {
121 if (local_host) {
122 *local_host = m_strdup("fuzzlocalhost");
123 }
124 if (local_port) {
125 *local_port = m_strdup("1234");
126 }
127 if (remote_host) {
128 *remote_host = m_strdup("fuzzremotehost");
129 }
130 if (remote_port) {
131 *remote_port = m_strdup("9876");
132 }
133 }