Mercurial > dropbear
comparison fuzz-common.c @ 1386:f0990c284663 fuzz
fuzzer-preauth don't call getpwnam(), bring back longjmp
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 02 Jun 2017 00:03:51 +0800 |
parents | 6c92e97553f1 |
children | a90fdd2d2ed8 |
comparison
equal
deleted
inserted
replaced
1385:6c92e97553f1 | 1386:f0990c284663 |
---|---|
64 | 64 |
65 int argc = sizeof(argv) / sizeof(*argv); | 65 int argc = sizeof(argv) / sizeof(*argv); |
66 svr_getopts(argc, argv); | 66 svr_getopts(argc, argv); |
67 | 67 |
68 /* user lookups might be slow, cache it */ | 68 /* user lookups might be slow, cache it */ |
69 pw = getpwuid(getuid()); | 69 fuzz.pw_name = m_strdup("person"); |
70 dropbear_assert(pw); | 70 fuzz.pw_dir = m_strdup("/tmp"); |
71 fuzz.pw_name = m_strdup(pw->pw_name); | 71 fuzz.pw_shell = m_strdup("/bin/zsh"); |
72 fuzz.pw_dir = m_strdup(pw->pw_dir); | |
73 fuzz.pw_shell = m_strdup(pw->pw_shell); | |
74 fuzz.pw_passwd = m_strdup("!!zzznope"); | 72 fuzz.pw_passwd = m_strdup("!!zzznope"); |
75 | 73 |
76 load_fixed_hostkeys(); | 74 load_fixed_hostkeys(); |
77 } | 75 } |
78 | 76 |