[sudo-commits] sudo changeset 12992:820f1f4e5c44

Todd C. Miller Todd.Miller at sudo.ws
Tue Feb 16 09:35:43 MST 2021


changeset:	12992:820f1f4e5c44 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/820f1f4e5c44
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Tue Feb 16 09:32:34 2021 -0700

Log Message:
	Always dynamically allocate user_cmnd, it is freed in sudo_user_free().
	Instead of setting user_cmnd in the policy functions, always set argv.
	Calling sudoers_policy_main() with argc of 0 is no longer allowed.

diffstat:

 plugins/sudoers/policy.c                   |  20 +++++---
 plugins/sudoers/regress/fuzz/fuzz_policy.c |   8 +--
 plugins/sudoers/sudoers.c                  |  67 +++++++++++++++--------------
 3 files changed, 49 insertions(+), 46 deletions(-)



More information about the sudo-commits mailing list