[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 17:00:59 EDT 2010


Oh, I missed that.  In that case, speculation is much more fruitful.  
It's very likely a malloc(0) --> NULL issue.

The easiest fix for Richard would be to change line 51 of bld_princ.c to 
say "tmpdata = malloc(rlen + 1)" instead of "tmpdata = malloc(rlen)".



More information about the krb5-bugs mailing list