git://git.exim.org
/
users
/
heiko
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0ff761
)
Fix buffer overrun in spam= acl condition. Bug 1552
author
Jeremy Harris
<jgh146exb@wizmail.org>
Thu, 27 Nov 2014 16:26:44 +0000
(16:26 +0000)
committer
Jeremy Harris
<jgh146exb@wizmail.org>
Thu, 27 Nov 2014 16:30:14 +0000
(16:30 +0000)
src/src/spam.c
patch
|
blob
|
history
diff --git
a/src/src/spam.c
b/src/src/spam.c
index 7eb6fbfa75ceed0cf15d38f5ea5019525ddd733e..76bf7d67fc8bcc70988cdf7bf358f96d3925099c 100644
(file)
--- 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;