]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Restore Lua stack properly in second-pass MIME detection
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 23 Dec 2025 10:13:43 +0000 (10:13 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 23 Dec 2025 10:13:43 +0000 (10:13 +0000)
commit77ac680ff0a9ec8a9a9bb66464d82d7a48094b46
tree4d2a76bb7a671ebd9038b209d4c59bb222d5f261
parent12055ce101646aed2d7666e20cf6ee7f74bdc5ef
[Fix] Restore Lua stack properly in second-pass MIME detection

Fix lua_settop(L, 0) which cleared the entire Lua stack instead
of restoring to the previous state, causing segfaults when
process_message() was called from Lua unit tests.
src/libmime/message.c