From: Jeremy Harris Date: Thu, 27 Nov 2014 16:26:44 +0000 (+0000) Subject: Fix buffer overrun in spam= acl condition. Bug 1552 X-Git-Tag: exim-4_85_RC2~9 X-Git-Url: https://git.exim.org/users/heiko/exim.git/commitdiff_plain/e252eb8c71ea3bddb32bf73bddc8b22cfde2bc3a Fix buffer overrun in spam= acl condition. Bug 1552 --- diff --git a/src/src/spam.c b/src/src/spam.c index 7eb6fbfa7..76bf7d67f 100644 --- a/src/src/spam.c +++ b/src/src/spam.c @@ -129,7 +129,8 @@ spam(uschar **listptr) (spamd_address_container *)store_get(sizeof(spamd_address_container)); /* grok spamd address and port */ - if( sscanf(CS address, "%s %u", this_spamd->tcp_addr, &(this_spamd->tcp_port)) != 2 ) { + if (sscanf(CS address, "%23s %u", this_spamd->tcp_addr, &(this_spamd->tcp_port)) != 2) + { log_write(0, LOG_MAIN, "spam acl condition: warning - invalid spamd address: '%s'", address); continue;