[sudo-commits] sudo changeset 14470:360e04f13024

Todd C. Miller Todd.Miller at sudo.ws
Wed Jan 18 08:04:30 MST 2023


changeset:	14470:360e04f13024 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/360e04f13024
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.

diffstat:

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



More information about the sudo-commits mailing list