From: Vsevolod Stakhov Date: Sat, 23 Jul 2022 19:35:50 +0000 (+0100) Subject: [Fix] Fix stack smashing X-Git-Tag: 3.3~112 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=53a504c97fd62d4a24efbad05395e878fd1dd0e5;p=rspamd.git [Fix] Fix stack smashing --- diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c index 33906e31c..3bc5062c8 100644 --- a/src/rspamd_proxy.c +++ b/src/rspamd_proxy.c @@ -1012,7 +1012,7 @@ proxy_call_cmp_script (struct rspamd_proxy_session *session, gint cbref) } gchar log_tag[RSPAMD_LOG_ID_LEN + 1]; - rspamd_strlcpy(log_tag, session->pool->tag.uid, sizeof (session->pool->tag.uid)); + rspamd_strlcpy(log_tag, session->pool->tag.uid, sizeof(log_tag)); lua_pushstring(L, log_tag); if (lua_pcall (L, 2, 0, err_idx) != 0) {