summaryrefslogtreecommitdiffstats
path: root/mail/zmailer
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2002-08-20 00:22:49 +0000
committernectar <nectar@FreeBSD.org>2002-08-20 00:22:49 +0000
commit825b91d744b4aabc451ddb8f3ed8e2f8c6199913 (patch)
treeea847eb034622eda2e62820e18fcc57bc0280a8f /mail/zmailer
parent080fdad35a7cc99a724f2d3df27075453556c5a3 (diff)
downloadFreeBSD-ports-825b91d744b4aabc451ddb8f3ed8e2f8c6199913.zip
FreeBSD-ports-825b91d744b4aabc451ddb8f3ed8e2f8c6199913.tar.gz
Fix potential remote buffer overflow.
Reported by: 3APA3A <3APA3A@SECURITY.NNOV.RU>
Diffstat (limited to 'mail/zmailer')
-rw-r--r--mail/zmailer/Makefile1
-rw-r--r--mail/zmailer/files/patch-smtpserver::smtpcmds.c11
2 files changed, 12 insertions, 0 deletions
diff --git a/mail/zmailer/Makefile b/mail/zmailer/Makefile
index 983a6b6..d75117c 100644
--- a/mail/zmailer/Makefile
+++ b/mail/zmailer/Makefile
@@ -7,6 +7,7 @@
PORTNAME= zmailer
PORTVERSION= 2.99.51
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= ftp://ftp.funet.fi/pub/unix/mail/zmailer/src/
diff --git a/mail/zmailer/files/patch-smtpserver::smtpcmds.c b/mail/zmailer/files/patch-smtpserver::smtpcmds.c
new file mode 100644
index 0000000..4fb2b11
--- /dev/null
+++ b/mail/zmailer/files/patch-smtpserver::smtpcmds.c
@@ -0,0 +1,11 @@
+--- smtpserver/smtpcmds.c Mon Aug 19 19:19:54 2002
++++ smtpserver/smtpcmds.c.orig Mon Aug 19 19:16:28 2002
+@@ -223,7 +223,7 @@
+ if (STYLE(SS->cfinfo, 'h')) {
+ char argbuf[MAXHOSTNAMELEN+30];
+ char *s;
+- snprintf(argbuf, sizeof(argbuf), "%s %s", SS->rhostname,
++ sprintf(argbuf,"%s %s", SS->rhostname,
+ ((SS->ihostaddr && (SS->ihostaddr[0] != '\0'))
+ ? SS->ihostaddr : "[0.0.0.0]"));
+ if ((s = router(SS, RKEY_HELLO, 1, argbuf, strlen(argbuf))) == NULL)
OpenPOWER on IntegriCloud