[krbdev.mit.edu #5394] SVN Commit
Jeffrey Altman via RT
rt-comment at krbdev.mit.edu
Thu Jan 18 06:35:44 EST 2007
sendto_kdc.c: use of a variable index into a dynamically
allocated array to determine the sizeof() an object makes
it unclear what type of object is involved. It also requires
a runtime check instead of a compile time replacement.
Not to mention that it could lead to the evaluation of an
uninitialized variable as was done in this case. Replace
sizeof(array index variable) with sizeof(type).
memset() the correct data structure.
Commit By: jaltman
Revision: 19065
Changed Files:
U trunk/src/lib/krb5/os/sendto_kdc.c
More information about the krb5-bugs
mailing list