[sudo-commits] sudo changeset 14602:d76de48704d0

Todd C. Miller Todd.Miller at sudo.ws
Wed Mar 1 14:00:33 MST 2023


changeset:	14602:d76de48704d0 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/d76de48704d0
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Wed Mar 01 13:58:32 2023 -0700

Log Message:
	Check for sudo_pow2_roundup() overflow.
	Calling sudo_pow2_roundup(INT_MAX+2) will return since there is no
	power of 2 larger than INT_MAX+1 that fits in an unsigned int.
	This is not an issue in practice since we restrict messages to 2Mib.

diffstat:

 logsrvd/logsrv_util.c        |  18 ++++++++++++------
 logsrvd/logsrvd.c            |  28 ++++++++++++++++++----------
 logsrvd/logsrvd_journal.c    |   5 +++++
 logsrvd/sendlog.c            |  17 +++++++++++++----
 plugins/sudoers/log_client.c |  30 +++++++++++++++++++++---------
 5 files changed, 69 insertions(+), 29 deletions(-)



More information about the sudo-commits mailing list