commit ac4c56a: [CritFix] Fill path field in hyperscan notice command

Vsevolod Stakhov vsevolod at rspamd.com
Mon Nov 21 17:56:06 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-11-21 17:51:01 +0000
URL: https://github.com/rspamd/rspamd/commit/ac4c56a26cc487b32bf1b3be3844e177c473b176 (HEAD -> master)

[CritFix] Fill path field in hyperscan notice command
Reported by: @moisseev

---
 src/libserver/hyperscan_tools.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libserver/hyperscan_tools.cxx b/src/libserver/hyperscan_tools.cxx
index 2499b21ec..b6c16e562 100644
--- a/src/libserver/hyperscan_tools.cxx
+++ b/src/libserver/hyperscan_tools.cxx
@@ -489,6 +489,7 @@ rspamd_hyperscan_notice_known(const char *fname)
 		}
 		else {
 			notice_cmd.type = RSPAMD_NOTICE_HYPERSCAN_CACHE;
+			rspamd_strlcpy(notice_cmd.cmd.hyperscan_cache_file.path, fname, sizeof(notice_cmd.cmd.hyperscan_cache_file.path));
 			rspamd_srv_send_command(rspamd_current_worker,
 				rspamd_current_worker->srv->event_loop, &notice_cmd, -1,
 				nullptr,


More information about the Commits mailing list