]> git.ipfire.org Git - thirdparty/bind9.git/commit
Check for overflow when resizing a heap
authorTony Finch <fanf@isc.org>
Tue, 6 Jun 2023 14:24:02 +0000 (15:24 +0100)
committerOndřej Surý <ondrej@isc.org>
Tue, 27 Jun 2023 10:38:09 +0000 (12:38 +0200)
commite2eaefbf7ab423805f4122de9ee0b93000bf8a80
tree91c827c5e9cae7c44feef8cb35be2e13e65e4fe2
parent14f5b79c74727305bb0ae2498b7f259dad5fa8c4
Check for overflow when resizing a heap

Ensure that the heap size calculations produce the correct answers,
and use `isc_mem_reget()` instead of calling `get` and `put`.

Closes #4122
lib/isc/heap.c