]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use max_align_t for memory sizeinfo alignment on OpenBSD
authorOndrej Sury <ondrej@openbsd-6-9.home.sury.org>
Tue, 13 Jul 2021 10:35:52 +0000 (12:35 +0200)
committerOndřej Surý <ondrej@sury.org>
Tue, 13 Jul 2021 11:48:33 +0000 (13:48 +0200)
commit6eca4b402e7b32c9d75192845e417c76d262fa1b
treec7a073e7fdcf5cdc63a579d6683b28bbd6cd071f
parent97e1a1f92963b8a0e3802a876e101b9910bc2b46
Use max_align_t for memory sizeinfo alignment on OpenBSD

On OpenBSD and more generally on platforms without either jemalloc or
malloc_(usable_)size, we need to increase the alignment for the memory
to sizeof(max_align_t) as with plain sizeof(void *), the compiled code
would be crashing when accessing the returned memory.
lib/isc/jemalloc_shim.h