]> 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>
Sat, 25 May 2019 18:25:12 +0000 (21:25 +0300)
commit0b46bb8cc9c0337b5fa0186d9cb031ff4f4ceb9a
tree16ecf56789dc40f6ce40d6e6e9c00efdaf446c5f
parent2a1e153035746ee6d9d52db841d6149713366cdb
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)
(cherry picked from commit 176fd5665512db95b1cf38fc647a7c706d80c14d)
event.c
include/event2/event_struct.h
minheap-internal.h