mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-01 06:45:10 +00:00
Parser needs user_shost for the %h escape in @include expansion.
Fixes oss-fuzz issue #30238
This commit is contained in:
@@ -49,6 +49,9 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
|
|||||||
if (sudoersin == NULL)
|
if (sudoersin == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
/* Parser needs user_shost for the %h escape in @include expansion. */
|
||||||
|
user_host = user_shost = "localhost";
|
||||||
|
|
||||||
/* Initialize defaults and parse sudoers. */
|
/* Initialize defaults and parse sudoers. */
|
||||||
init_defaults();
|
init_defaults();
|
||||||
init_parser("sudoers", false, true);
|
init_parser("sudoers", false, true);
|
||||||
|
Reference in New Issue
Block a user