OpenAFS Master Repository branch, master, updated. BP-openafs-stable-1_8_x-407-g4a57cc5
Gerrit Code Review
gerrit@openafs.org
Fri, 26 Jul 2019 10:27:24 -0400
The following commit has been merged in the master branch:
commit 4a57cc54dfb6789a86ee735360ee44209c1a901a
Author: Cheyenne Wills <cwills@sinenomine.net>
Date: Tue Jul 2 16:58:28 2019 -0600
ptserver: testpt.c format-overflow warning
GCC 9 introduced new warnings/errors and is flagging a sprintf with a
format-overflow warning. With --checking-enabled, this error is causing
testpt.c to fail during compile.
Change the buffer size from 16 bytes to PR_MAXNAMELEN+1 and use snprintf
instead of sprintf. Generate an error message and exit if snprintf
truncates the string.
Change-Id: I30fbe0971ba3e05dc6ac61e7b2ded2fd1777374d
Reviewed-on: https://gerrit.openafs.org/13663
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/ptserver/testpt.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
--
OpenAFS Master Repository