comparison fuzz/fuzz-common.c @ 1780:b5aedadc0008

fuzzing - Set postauth user to root since that's what it runs as
author Matt Johnston <matt@ucc.asn.au>
date Tue, 17 Nov 2020 19:28:11 +0800
parents 36d4c027cba7
children a6da10ac64b5
comparison
equal deleted inserted replaced
1779:36d4c027cba7 1780:b5aedadc0008
260 260
261 int fakesock = wrapfd_new_fuzzinput(); 261 int fakesock = wrapfd_new_fuzzinput();
262 262
263 if (authdone) { 263 if (authdone) {
264 ses.authstate.authdone = 1; 264 ses.authstate.authdone = 1;
265 char *me = fuzz_getpwuid(getuid())->pw_name; 265 fill_passwd("root");
266 fill_passwd(me);
267 } 266 }
268 267
269 m_malloc_set_epoch(1); 268 m_malloc_set_epoch(1);
270 fuzz.do_jmp = 1; 269 fuzz.do_jmp = 1;
271 if (setjmp(fuzz.jmp) == 0) { 270 if (setjmp(fuzz.jmp) == 0) {