[krbdev.mit.edu #6777] Segmentation fault in krb library (sn2princ.c) if realm not resolved
Greg Hudson via RT
rt-comment at krbdev.mit.edu
Fri Sep 17 15:25:59 EDT 2010
[tlyu - Fri Sep 17 14:46:43 2010]:
> 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?
I don't think it's fruitful to speculate, only to step through in a
debugger.
(krb5int_build_principal_va() would not invoke malloc(0) if the realm is
empty. It would invoke strdup("") but a lot more software would break on
AIX if it's strdup were so broken as to return NULL in that case.)
More information about the krb5-bugs
mailing list