[krbdev.mit.edu #6777] Segmentation fault in krb library (sn2princ.c) if realm not resolved

Tom Yu via RT rt-comment at krbdev.mit.edu
Fri Sep 17 14:46:44 EDT 2010


"Greg Hudson via RT" <rt-comment at krbdev.mit.edu> writes:

> [Richard.Krier at globalfoundries.com - Wed Sep 15 14:20:35 2010]:
>> 2. As for krb5_build_principal(), seems the code is set up to return
>>    null ret_princ if the input realm is missing,
>>    think it is working as designed.
>
> There is no code like that in our tree.  krb5_build_principal() should 
> be able to build a principal with an empty realm.  If 
> krb5_build_principal() is failing with an empty realm, we will not 
> understand your issue until you investigate why.

Perhaps strdup() on AIX can return NULL for a zero-length string?  For
that matter, does malloc() on AIX return NULL for a zero argument?




More information about the krb5-bugs mailing list