]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Improve loadstring error handling for Lua 5.4 compatibility
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 6 Dec 2025 11:09:03 +0000 (11:09 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 6 Dec 2025 11:09:03 +0000 (11:09 +0000)
commit738edf0cb72b43e37671bd37537bfc1065d0058c
tree3eb690d0ec2db442d822dc75c5d917a79418bdb2
parentfd6519443dedbe8c04b8d07b19f186181699d43e
[Fix] Improve loadstring error handling for Lua 5.4 compatibility

Ensure loadstring results are checked for nil (syntax errors) before
passing to pcall. This prevents errors when running with Lua 5.4
compatibility where load behavior differs slightly or when handling
invalid Lua chunks.
lualib/lua_dkim_tools.lua
lualib/lua_util.lua
src/plugins/lua/clickhouse.lua