2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 22:35:10 +00:00

Set program name in fuzzers so we get consisten warnings.

This commit is contained in:
Todd C. Miller
2021-02-24 15:14:58 -07:00
parent 9d27880af8
commit a3f38fac0c
7 changed files with 16 additions and 1 deletions

View File

@@ -38,6 +38,8 @@ LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
size_t nwritten;
int fd;
setprogname("fuzz_sudo_conf");
/* sudo_conf_read() uses a conf file path, not an open file. */
fd = mkstemp(tempfile);
if (fd == -1)