The following commit has been merged in the master branch:
commit a9cff4ab4c9eba40145706778664318de2d89c12
Author: Pat Riehecky <[email protected]>
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 <[email protected]>
Reviewed-by: Benjamin Kaduk <[email protected]>
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
_______________________________________________
OpenAFS-cvs mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-cvs