]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: make sure we do not allocate 16-byte aligned objects through lua(jit)
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 8 Feb 2024 14:28:24 +0000 (15:28 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Thu, 8 Feb 2024 14:30:22 +0000 (15:30 +0100)
commit5bec8d9def49696642cf81a91fbc182e982de439
tree5f87ded4462c5e45525adafe507eca5a6606fe6f
parentc04764aae9205bc7179695f9a947d5f910e02c30
dnsdist: make sure we do not allocate 16-byte aligned objects through lua(jit)

luajit aligns only to 8 bytes by default, and some objects require
16 byte alignment.

Fixes #13766

Note that the static assert in LuaContext.hpp is commented out in
one case.  This trips on some platforms, but does not seem to be
harmful right now.

The fundamental solution remains the have luajit agree with C++ on
minimal alignment of its allocators.
ext/luawrapper/include/LuaContext.hpp
pdns/dnsdist-lua-bindings.cc