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

@@ -208,7 +208,7 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
if (fp == NULL)
return 0;
setprogname("fuzz_sudoers");
initprogname("fuzz_sudoers");
sudoers_debug_register(getprogname(), NULL);
if (getenv("SUDO_FUZZ_VERBOSE") == NULL)
sudo_warn_set_conversation(fuzz_conversation);