From d9921ebf797df5a999a2b64d29b486befe3f4482 Mon Sep 17 00:00:00 2001 From: Jacques Vidrine Date: Tue, 20 Aug 2002 00:22:49 +0000 Subject: Fix potential remote buffer overflow. Reported by: 3APA3A <3APA3A@SECURITY.NNOV.RU> --- mail/zmailer/files/patch-smtpserver::smtpcmds.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 mail/zmailer/files/patch-smtpserver::smtpcmds.c (limited to 'mail/zmailer/files/patch-smtpserver::smtpcmds.c') diff --git a/mail/zmailer/files/patch-smtpserver::smtpcmds.c b/mail/zmailer/files/patch-smtpserver::smtpcmds.c new file mode 100644 index 000000000000..4fb2b118acd6 --- /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) -- cgit v1.2.3