]> granicus.if.org Git - libevent/commit
Protect min_heap_push_ against integer overflow.
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 16 Apr 2019 19:12:21 +0000 (21:12 +0200)
committerAzat Khuzhin <azat@libevent.org>
Mon, 22 Apr 2019 20:51:25 +0000 (23:51 +0300)
commit176fd5665512db95b1cf38fc647a7c706d80c14d
tree547109c1993fdb96d1d645969fda2c3150b75c95
parent16d8564a2cd2ec665b577f39eea6583d4b651e92
Protect min_heap_push_ against integer overflow.

Converting unsigned to size_t for size of memory objects allows
proper handling of very large heaps on 64 bit systems.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Closes: #799 (cherry-picked)
event.c
include/event2/event_struct.h
minheap-internal.h