[sudo-commits] sudo changeset 14374:3d12dfeef26b

Todd C. Miller Todd.Miller at sudo.ws
Wed Dec 7 10:28:32 MST 2022

changeset:	14374:3d12dfeef26b in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/3d12dfeef26b
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Wed Dec 07 10:25:00 2022 -0700

Log Message:
	Fix potential crash introduced in the fix for GitHub issue #134.
	If a user's sudoers entry did not have any RunAs user's set, running
	"sudo -U otheruser -l" would dereference a NULL pointer.  We need
	to compare the default RunAs user if the sudoers entry does not
	specify one explicitly.  Problem reported by Andreas Mueller who
	also suggested a different solution in PR #219.


 plugins/sudoers/parse.c |  25 ++++++++++++++++++++-----
 1 files changed, 20 insertions(+), 5 deletions(-)

More information about the sudo-commits mailing list