svn rev #19310: branches/krb5-1-6/ src/lib/gssapi/generic/

tlyu@MIT.EDU tlyu at MIT.EDU
Thu Mar 29 17:36:38 EDT 2007


Commit By: tlyu
Log Message: 
ticket: 5455
version_fixed: 1.6.1

pull up r19196 from trunk

 r19196 at cathode-dark-space:  raeburn | 2007-02-28 21:19:41 -0500
 ticket: new
 target_version: 1.6.1
 tags: pullup
 subject: valgrind detects uninitialized (but really unused) bytes in 'queue'
 
 The gsstest program exports a GSSAPI security context to a blob in
 memory, writes that memory to a file, and reads it back to use it.
 Under valgrind, the writing phase triggers a warning about
 uninitialized storage.
 
 The "queue" structure as implemented in generic/util_ordering.c holds
 an array of values, some of which may never be initialized.  As far as
 I can tell, those uninitialized values are never used before being
 initialized, either, but valgrind doesn't know that.
 
 This patch zaps the structure contents (including the array) before
 using the queue object.
 




Changed Files:
_U  branches/krb5-1-6/
U   branches/krb5-1-6/src/lib/gssapi/generic/util_ordering.c



More information about the cvs-krb5 mailing list