OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_2-378-g6df44ca
Gerrit Code Review
gerrit@openafs.org
Tue, 18 Nov 2025 15:25:49 -0500
The following commit has been merged in the master branch:
commit 6df44ca59e83a7646c7c47d15faad3ea5a68bdbc
Author: Andrew Deason <adeason@sinenomine.net>
Date: Thu Nov 13 20:36:19 2025 -0600
ptserver: Convert prname malloc()s to calloc()s
Commit c57eddb1f2 (viced: Give an actual 'prname' to hpr_NameToId)
converted various callers in src/ptserver to use calloc() instead of
malloc() when allocating memory for 'prname', to make sure we never
accidentally send uninitialized data for a 'prname' initilized with, for
example, strlcpy().
That commit missed a couple of callers that still use malloc(). These
currently have no risk of using uninitialized data, but convert them,
too, to make sure we don't accidentally introduce such problems in the
future, and to make all similar code more consistent.
Thanks to mvitale@sinenomine.net for pointing this out.
Change-Id: If96db176c7d27da834c611df52c191b28e16e227
Reviewed-on: https://gerrit.openafs.org/16627
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Gaurav Saxena <gsaxena@sinenomine.net>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
src/ptserver/pts.c | 2 +-
src/ptserver/ptuser.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--
OpenAFS Master Repository