Mercurial > dropbear
comparison fuzz.h @ 1779:36d4c027cba7
fuzzing: add workaround getpwuid/getpwnam
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 16 Nov 2020 22:44:30 +0800 |
parents | 19cdeb3d2aac |
children | a6da10ac64b5 |
comparison
equal
deleted
inserted
replaced
1778:19cdeb3d2aac | 1779:36d4c027cba7 |
---|---|
97 #endif | 97 #endif |
98 #define stderr (fuzz.fake_stderr) | 98 #define stderr (fuzz.fake_stderr) |
99 | 99 |
100 #endif /* FUZZ_NO_REPLACE_STDERR */ | 100 #endif /* FUZZ_NO_REPLACE_STDERR */ |
101 | 101 |
102 struct passwd* fuzz_getpwuid(uid_t uid); | |
103 struct passwd* fuzz_getpwnam(const char *login); | |
104 /* guard for when fuzz.h is included by fuzz-common.c */ | |
105 #ifndef FUZZ_NO_REPLACE_GETPW | |
106 #define getpwnam(x) fuzz_getpwnam(x) | |
107 #define getpwuid(x) fuzz_getpwuid(x) | |
108 #endif // FUZZ_NO_REPLACE_GETPW | |
109 | |
102 #endif // DROPBEAR_FUZZ | 110 #endif // DROPBEAR_FUZZ |
103 | 111 |
104 #endif /* DROPBEAR_FUZZ_H */ | 112 #endif /* DROPBEAR_FUZZ_H */ |