[sudo-commits] sudo changeset 13347:c03f1c2f8f35
Todd C. Miller
Todd.Miller at sudo.ws
Mon Aug 9 16:09:46 MDT 2021
changeset: 13347:c03f1c2f8f35 in /raid/repos/sudo
details: https://www.sudo.ws/repos/sudo/rev/c03f1c2f8f35
user: Todd C. Miller <Todd.Miller at sudo.ws>
date: Mon Aug 09 08:19:40 2021 -0600
Log Message:
expand_prompt: use correct strlcpy() size parameter
The available size passed to strlcpy() was computed incorrectly.
Switch to updating the length after writing to the new prompt instead
of computing it each time. The actual buffer size is computed and
allocated correctly so there is no real consequence to this bug.
Found by Qualys.
diffstat:
plugins/sudoers/prompt.c | 41 ++++++++++++++++++++++++-----------------
1 files changed, 24 insertions(+), 17 deletions(-)
More information about the sudo-commits
mailing list