Use initprogname(), not setprogname() in the fuzzers.

This results in better coverage for progname.c.
This commit is contained in:
Todd C. Miller
2022-12-29 15:52:21 -07:00
parent 206155e603
commit 91d7592e8a
8 changed files with 8 additions and 8 deletions

View File

@@ -76,7 +76,7 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
size_t nwritten;
int fd;
setprogname("fuzz_sudo_conf");
initprogname("fuzz_sudo_conf");
if (getenv("SUDO_FUZZ_VERBOSE") == NULL)
sudo_warn_set_conversation(fuzz_conversation);