[sudo-commits] sudo changeset 14457:9d6bed4e3fd0

Todd C. Miller Todd.Miller at sudo.ws
Mon Jan 9 14:29:16 MST 2023


changeset:	14457:9d6bed4e3fd0 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/9d6bed4e3fd0
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Mon Jan 09 14:26:07 2023 -0700

Log Message:
	env_file_next_local: change the order of the val_len check.
	It makes more sense to verify that val_len > 1 before using it.
	This is not a problem in practice because val[val_len - 1] is
	guaranteed not to underflow but it can confuse reviewers and static
	analyzers.

diffstat:

 plugins/sudoers/env.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)



More information about the sudo-commits mailing list