[krbdev.mit.edu #8215] git commit

Tom Yu via RT rt-comment at krbdev.mit.edu
Thu Jul 16 14:25:01 EDT 2015


Fix princflags memory management

Fix some out of memory error cases (found by Coverity) that could
cause multiple frees or freeing of invalid pointers.  In
krb5_flagnum_to_string(), don't assume that asprintf() stores a null
pointer on failure (it does in BSD but not in glibc).  In
krb5_flags_to_strings(), free the correct pointer in the cleanup loop
in on error.

https://github.com/krb5/krb5/commit/dd5f948614b6662fc40dc8de3f567078cfe6295e
Author: Tom Yu <tlyu at mit.edu>
Commit: dd5f948614b6662fc40dc8de3f567078cfe6295e
Branch: master
 src/lib/kadm5/str_conv.c  |   18 ++++++++++--------
 src/tests/t_princflags.py |   13 +++++++++++++
 2 files changed, 23 insertions(+), 8 deletions(-)



More information about the krb5-bugs mailing list