diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-10-18 22:53:44 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-10-18 22:53:44 +0800 |
commit | 6ca24af24afe3a3572e9d043df3f8342d38c84b1 (patch) | |
tree | b06b58a6f94bd2827d023f0de10e7f3843a6e28c /dbutil.c | |
parent | 17873e8c922eded2cec86184673a6d110df6403f (diff) | |
parent | 400c7c161f8fd4859f557339f77025044ec950e0 (diff) |
Merge fuzz branch
Diffstat (limited to 'dbutil.c')
-rw-r--r-- | dbutil.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -121,7 +121,6 @@ static void generic_dropbear_exit(int exitcode, const char* format, _dropbear_log(LOG_INFO, fmtbuf, param); #if DROPBEAR_FUZZ - /* longjmp before cleaning up svr_opts */ if (fuzz.do_jmp) { longjmp(fuzz.jmp, 1); } @@ -258,6 +257,12 @@ int spawn_command(void(*exec_fn)(const void *user_data), const void *exec_data, const int FDIN = 0; const int FDOUT = 1; +#if DROPBEAR_FUZZ + if (fuzz.fuzzing) { + return fuzz_spawn_command(ret_writefd, ret_readfd, ret_errfd, ret_pid); + } +#endif + /* redirect stdin/stdout/stderr */ if (pipe(infds) != 0) { return DROPBEAR_FAILURE; |