From 220ba993a28aaed1f69fea92e5484da119904036 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Tue, 17 Nov 2020 19:28:11 +0800 Subject: [PATCH] fuzzing - Set postauth user to root since that's what it runs as --- fuzz/fuzz-common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fuzz/fuzz-common.c b/fuzz/fuzz-common.c index df704d9..4a9634a 100644 --- a/fuzz/fuzz-common.c +++ b/fuzz/fuzz-common.c @@ -262,8 +262,7 @@ int fuzz_run_server(const uint8_t *Data, size_t Size, int skip_kexmaths, int aut if (authdone) { ses.authstate.authdone = 1; - char *me = fuzz_getpwuid(getuid())->pw_name; - fill_passwd(me); + fill_passwd("root"); } m_malloc_set_epoch(1);