Do not disable fuzzer output if SUDO_FUZZ_VERBOSE env variable is set.

This commit is contained in:
Todd C. Miller
2022-02-22 12:04:10 -07:00
parent 2911c31dd7
commit 41bc52302b
8 changed files with 16 additions and 8 deletions

View File

@@ -188,7 +188,8 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
setprogname("fuzz_sudoers");
sudoers_debug_register(getprogname(), NULL);
sudo_warn_set_conversation(fuzz_conversation);
if (getenv("SUDO_FUZZ_VERBOSE") == NULL)
sudo_warn_set_conversation(fuzz_conversation);
/* Sudoers locale setup. */
sudoers_initlocale(setlocale(LC_ALL, ""), "C");