]> source.dussan.org Git - rspamd.git/commit
[Fix] Do not use lightuserdata for traceback
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 24 May 2019 13:13:13 +0000 (14:13 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 24 May 2019 13:13:13 +0000 (14:13 +0100)
commiteb5fc65aca905ad38bab0dae85dba0f9a56d7766
tree126bf68a7c23e471920f73951ad8cd2326237a5b
parent8303b194152ffc02b5079b6bd08f1fecfd43f5d0
[Fix] Do not use lightuserdata for traceback

LuaJIT limits lightuserdata usage to 47 bits. On Arm64, this leads to
break of the C <-> Lua interoperability using this type.

This rework has changed traceback function behaviour from lightuserdata
opaque pointer (GString * in particular) to luaL_Buffer.

Issue: #2906
22 files changed:
src/libmime/message.c
src/libmime/mime_expressions.c
src/libserver/cfg_rcl.c
src/libserver/cfg_utils.c
src/libserver/re_cache.c
src/libstat/backends/redis_backend.c
src/libstat/backends/sqlite3_backend.c
src/libstat/stat_config.c
src/libstat/stat_process.c
src/lua/lua_common.c
src/lua/lua_common.h
src/lua/lua_config.c
src/lua/lua_dns_resolver.c
src/lua/lua_expression.c
src/lua/lua_task.c
src/lua/lua_thread_pool.c
src/lua/lua_upstream.c
src/lua/lua_worker.c
src/plugins/dkim_check.c
src/plugins/fuzzy_check.c
src/plugins/surbl.c
src/rspamd_proxy.c