[sudo-commits] sudo changeset 10448:294720fc981a
Todd C. Miller
Todd.Miller at courtesan.com
Fri May 13 06:42:38 MDT 2016
changeset: 10448:294720fc981a in /media/repos/sudo
details: https://www.sudo.ws/repos/sudo/rev/294720fc981a
user: Todd C. Miller <Todd.Miller at courtesan.com>
date: Thu May 12 10:07:59 2016 -0600
Log Message:
Use EOVERFLOW, not ENOMEM for overflow conditions.
For snprintf() and vsnprintf(), POSIX says we should return -1 and
set errno to EOVERFLOW if the size param is > INT_MAX; also zero
out the string in this case (not mandated by POSIX) for safety.
diffstat:
lib/util/snprintf.c | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
More information about the sudo-commits
mailing list