[krbdev.mit.edu #5455] SVN Commit

Ken Raeburn via RT rt-comment at krbdev.mit.edu
Wed Feb 28 21:19:46 EST 2007


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.

Commit By: raeburn



Revision: 19196
Changed Files:
U   trunk/src/lib/gssapi/generic/util_ordering.c




More information about the krb5-bugs mailing list