[krbdev.mit.edu #7981] git commit

Greg Hudson via RT rt-comment at krbdev.mit.edu
Thu Aug 7 15:07:41 EDT 2014


Fix glob memory leak in GSS initialization

In loadConfigFiles, call globfree even if glob fails, since glob can
allocate memory and report partial results on failure.  Also
initialize globbuf before calling glob; this is not strictly required,
but hedges against hypothetical libc implementation bugs which could
leave globbuf.gl_pathc or globbuf.gl_pathv uninitialized on error.

https://github.com/krb5/krb5/commit/20f91672568b1d2e341a9bb0dba88a831f152f1c
Author: Greg Hudson <ghudson at mit.edu>
Commit: 20f91672568b1d2e341a9bb0dba88a831f152f1c
Branch: master
 src/lib/gssapi/mechglue/g_initialize.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)



More information about the krb5-bugs mailing list