OpenAFS Master Repository branch, master, updated. openafs-devel-1_9_2-539-gaa41710
Gerrit Code Review
gerrit@openafs.org
Fri, 17 Jul 2026 07:53:12 -0400
The following commit has been merged in the master branch:
commit aa41710afde8685e2273c2d01c5502c50b691327
Author: Jeffrey Altman <jaltman@auristor.com>
Date: Wed Dec 31 16:29:24 2025 -0500
aklog: update MIT compat funcs MITKRB5-SA-2003-005
The MITKRB5-SA-2003-005 patch changed the macro definition of
krb5_princ_component() to prevent a possibility of buffer overrun
by returning NULL if the requested component index is greater than
the number of allocated components (aka krb5_princ_size()). The
change altered the krb5_princ_component() definition such that it
could return either "krb5_data *" or "void *". This results in
the following errors when using the Solaris Studio 12.3 suncc
compiler (but oddly not when using Oracle Developer Studio 12.6):
non-unique member requires struct/union pointer: length
left operand of "->" must be pointer to struct/union
non-unique member requires struct/union pointer: data
left operand of "->" must be pointer to struct/union
The suncc compiler is confused by the possible attempt to resolve
' NULL->length' and 'NULL->data'.
This change casts the return from krb5_princ_component() to
(krb5_data *) before accessing 'data' and 'length'.
Change-Id: If06d047614d8dff6533a3146939468e3efcd87f5
Reported-by: Marco Hoehle <shadowh4712@gmail.com>
Tested-by: Marco Hoehle <shadowh4712@gmail.com>
Reviewed-on: https://gerrit.openafs.org/16670
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
src/aklog/aklog.c | 4 ++--
src/aklog/klog.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
--
OpenAFS Master Repository