[krbdev.mit.edu #5394] SVN Commit
Tom Yu via RT
rt-comment at krbdev.mit.edu
Wed Jan 24 16:35:41 EST 2007
pull up r19065 from trunk
r19065 at cathode-dark-space: jaltman | 2007-01-18 06:35:33 -0500
ticket: 5394
tags: pullup
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: tlyu
Revision: 19111
Changed Files:
_U branches/krb5-1-6/
U branches/krb5-1-6/src/lib/krb5/os/sendto_kdc.c
More information about the krb5-bugs
mailing list