]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix stack smashing
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 23 Jul 2022 19:35:50 +0000 (20:35 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 23 Jul 2022 19:35:50 +0000 (20:35 +0100)
src/rspamd_proxy.c

index 33906e31caea33816766aed25b3992a4588fcb1c..3bc5062c80efd8709afbdbbb86191d0846fbea02 100644 (file)
@@ -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) {