commit 7eaa2fd: [Minor] Set body is not zero terminated in Milter
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Jul 22 11:56:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-07-22 12:48:58 +0100
URL: https://github.com/rspamd/rspamd/commit/7eaa2fde301566ca1078492ac9985b957eaa8f39 (HEAD -> master)
[Minor] Set body is not zero terminated in Milter
---
src/libserver/milter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libserver/milter.c b/src/libserver/milter.c
index 04fe8b882..28e0df1c7 100644
--- a/src/libserver/milter.c
+++ b/src/libserver/milter.c
@@ -1226,7 +1226,7 @@ rspamd_milter_send_action (struct rspamd_milter_session *session,
msg_debug_milter ("want to change body; size = %uz",
len);
SET_COMMAND (cmd, len, reply, pos);
- memcpy (pos, body_str, len + 1);
+ memcpy (pos, body_str, len);
break;
case RSPAMD_MILTER_REPLYCODE:
case RSPAMD_MILTER_ADDRCPT:
More information about the Commits
mailing list