OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_0-110-ga9cff4a
Gerrit Code Review
gerrit@openafs.org
Fri, 26 Feb 2021 10:24:03 -0500
The following commit has been merged in the master branch:
commit a9cff4ab4c9eba40145706778664318de2d89c12
Author: Pat Riehecky <riehecky@fnal.gov>
Date: Wed Jun 6 10:55:18 2018 -0500
strlcpy restricted to array length.
For kaprocs, size of 'caller.userID.name' is defined by a different macro
than size of 'name'. They can become out of sync, so restricting to
size of dest.
For scout and afsmon-win, the if statement determined that the string
was longer than the dest buffer. So we are using the size of the buffer
as the max length to setup for truncation.
(via cppcheck)
Change-Id: I38a2bff1d59d17ea02e136c35cd5b132a75a8ed8
Reviewed-on: https://gerrit.openafs.org/13163
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
src/afsmonitor/afsmon-win.c | 30 +++++++++++++-----------------
src/kauth/kaprocs.c | 4 ++--
src/scout/scout.c | 23 ++++++++++-------------
3 files changed, 25 insertions(+), 32 deletions(-)
--
OpenAFS Master Repository