Mercurial > dropbear
diff runopts.h @ 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 | 9169e4e7cbee |
children | 5c2899e35b63 |
line wrap: on
line diff
--- a/runopts.h Fri May 12 22:14:49 2017 +0800 +++ b/runopts.h Fri May 12 23:14:54 2017 +0800 @@ -58,6 +58,29 @@ char *mac_list; #endif +#ifdef DROPBEAR_FUZZ + struct { + int fuzzing; + + // to record an unencrypted stream + FILE* recordf; + + // fuzzing input + buffer *input; + + // dropbear_exit() jumps back + sigjmp_buf jmp; + + uid_t pw_uid; + gid_t pw_gid; + char* pw_name; + char* pw_dir; + char* pw_shell; + char* pw_passwd; + + } fuzz; +#endif + } runopts; extern runopts opts;