Mercurial > dropbear
comparison svr-session.c @ 1347:b28624698130 fuzz
copy over some fuzzing code from AFL branch
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 12 May 2017 23:14:54 +0800 |
parents | b66a483f3dcb |
children | 5c2899e35b63 |
comparison
equal
deleted
inserted
replaced
1346:78b7e0634117 | 1347:b28624698130 |
---|---|
189 for (i = 0; i < DROPBEAR_MAX_PORTS; i++) { | 189 for (i = 0; i < DROPBEAR_MAX_PORTS; i++) { |
190 m_free(svr_opts.addresses[i]); | 190 m_free(svr_opts.addresses[i]); |
191 m_free(svr_opts.ports[i]); | 191 m_free(svr_opts.ports[i]); |
192 } | 192 } |
193 | 193 |
194 #ifdef DROPBEAR_FUZZ | |
195 if (opts.fuzz.fuzzing) { | |
196 longjmp(opts.fuzz.jmp, 1); | |
197 } | |
198 #endif | |
199 | |
194 exit(exitcode); | 200 exit(exitcode); |
195 | 201 |
196 } | 202 } |
197 | 203 |
198 /* priority is priority as with syslog() */ | 204 /* priority is priority as with syslog() */ |