Use initprogname(), not setprogname() in the fuzzers.
This results in better coverage for progname.c.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user