[sudo-commits] sudo changeset 13505:bc402e4bd4d2

Todd C. Miller Todd.Miller at sudo.ws
Fri Sep 17 15:39:01 MDT 2021


changeset:	13505:bc402e4bd4d2 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/bc402e4bd4d2
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Fri Sep 17 14:01:28 2021 -0600

Log Message:
	Check strftime(3) return value in all cases.
	Old versions of strftime(3) didn't guarantee to NUL-terminate the buffer
	so we explicitly clear the last byte of the buffer and check it.

diffstat:

 lib/eventlog/eventlog.c                         |  42 +++++++++++++++++-------
 lib/iolog/regress/iolog_path/check_iolog_path.c |  19 ++++++++--
 lib/util/sudo_debug.c                           |   3 +-
 plugins/audit_json/audit_json.c                 |  23 ++++++++----
 plugins/sudoers/cvtsudoers_json.c               |  11 ++++-
 plugins/sudoers/cvtsudoers_ldif.c               |  11 ++++-
 plugins/sudoers/fmtsudoers.c                    |  10 +++--
 plugins/sudoers/ldap.c                          |  15 +++++--
 plugins/sudoers/parse.c                         |  12 ++++--
 plugins/sudoers/timestr.c                       |   6 ++-
 10 files changed, 105 insertions(+), 47 deletions(-)



More information about the sudo-commits mailing list