[krbdev.mit.edu #8436] git commit

Greg Hudson via RT rt-comment at krbdev.mit.edu
Wed Aug 10 13:51:32 EDT 2016


Update libev sources to 4.22

This update fixes a memory leak when freeing null pointers using
ev_realloc_emul().  In 4.04, that function assumed that realloc(x, 0)
is equivalent to free(x) under glibc, but in at least some versions of
glibc, realloc(NULL, 0) behaves like malloc(0) rather than free(NULL)
and allocates memory.

https://github.com/krb5/krb5/commit/0038afaaa4d0a2b038276e9719244bda628d6f29
Author: Greg Hudson <ghudson at mit.edu>
Commit: 0038afaaa4d0a2b038276e9719244bda628d6f29
Branch: master
 src/util/verto/ev.c         | 1788 +++++++++++++++++++++++++++++++++++--------
 src/util/verto/ev.h         |  245 ++++---
 src/util/verto/ev_poll.c    |    8 +-
 src/util/verto/ev_select.c  |   16 +-
 src/util/verto/ev_vars.h    |   39 +-
 src/util/verto/ev_win32.c   |   21 +-
 src/util/verto/ev_wrap.h    |  324 ++++----
 src/util/verto/verto-k5ev.c |    1 +
 8 files changed, 1835 insertions(+), 607 deletions(-)



More information about the krb5-bugs mailing list