[sudo-commits] sudo changeset 13547:59a4319b3463
Todd C. Miller
Todd.Miller at sudo.ws
Tue Sep 28 13:30:48 MDT 2021
changeset: 13547:59a4319b3463 in /raid/repos/sudo
details: https://www.sudo.ws/repos/sudo/rev/59a4319b3463
user: Todd C. Miller <Todd.Miller at sudo.ws>
date: Tue Sep 28 13:24:21 2021 -0600
Log Message:
expand_buf: fix conditional for when we need to preserve existing data
It is possible for the buffer offset to be zero when the length is
non-zero. The proper value to use is the same as is used for the
memcpy/memmove size. Fixes buffer corruption caused by a very long
command line that usually results in a dropped connection.
diffstat:
logsrvd/logsrv_util.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
More information about the sudo-commits
mailing list