[krbdev.mit.edu #5394] krb5-1.6: segfault on password change

Ken Raeburn via RT rt-comment at krbdev.mit.edu
Thu Jan 18 10:42:15 EST 2007


On Jan 18, 2007, at 05:45, Public Submitter via RT wrote:
> Getting segfault when trying to change the password.
>
> The reason is a typo in a memset call and an use of an uninizialied
> variable in lib/krb5/os/sendto_kdc.c

Tom and I were looking at this the other day.  The uninitialized  
variable shouldn't matter if it's only used in a sizeof expression.   
The argument to sizeof isn't evaluated (except in the case of C99  
variable-length arrays); only its type is needed.  (Though it is  
probably tidier to use something like sizeof(array[0]) and drop the  
variable reference altogether.)

The memset bug would probably explain the problem, though...

Ken






More information about the krb5-bugs mailing list