]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix the real allocation size in OpenBSD rallocx shim
authorOndřej Surý <ondrej@sury.org>
Mon, 12 Jul 2021 06:43:14 +0000 (08:43 +0200)
committerOndřej Surý <ondrej@sury.org>
Mon, 12 Jul 2021 06:43:14 +0000 (08:43 +0200)
commitd1a9e549b1a47352fca00bfb72b317bfbd4e8e13
tree844bb943afc888672f7876df69327f3b80b7c933
parent592a4bc456f18c3d22f0b4b6ce46c8f0617a9ac4
Fix the real allocation size in OpenBSD rallocx shim

In the rallocx() shim for OpenBSD (that's the only platform that doesn't
have malloc_size() or malloc_usable_size() equivalent), the newly
allocated size was missing the extra size_t member for storing the
allocation size leading to size_t sized overflow at the end of the
reallocated memory chunk.
lib/isc/jemalloc_shim.h