Upgrade to 3.5. The PR submitter claims that buffer overrun issues have been eliminated, but I'll keep this port forbidden till I get a green light from the security tem.

PR:	55676
Submitted by:	KIMURA Yasuhiro <yasu@utahime.org>
This commit is contained in:
Masafumi Max NAKANE 2003-08-18 01:42:20 +00:00
parent fab4449a69
commit f4c47bb096
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=87162
4 changed files with 29 additions and 9 deletions

View file

@ -6,7 +6,7 @@
#
PORTNAME= youbin
PORTVERSION= 3.4
PORTVERSION= 3.5
CATEGORIES= mail
MASTER_SITES= http://www.agusa.nuie.nagoya-u.ac.jp/software/agusalab/youbin/archive/
DISTNAME= ${PORTNAME}${PORTVERSION}-unix

View file

@ -1 +1 @@
MD5 (youbin3.4-unix.tar.gz) = 234223775792e003c12e4f52efa97e75
MD5 (youbin3.5-unix.tar.gz) = 1908de828ce5023a7d045babb9bef2e9

View file

@ -1,6 +1,6 @@
--- server.c.orig Sun Apr 15 23:17:13 2001
+++ server.c Tue May 15 12:26:12 2001
@@ -48,6 +48,9 @@
--- server.c.orig Thu May 8 12:34:45 2003
+++ server.c Mon Aug 18 10:27:55 2003
@@ -49,6 +49,9 @@
#include <pwd.h> /* For getpwuid(). */
#include <signal.h>
#include <stdio.h>
@ -10,11 +10,10 @@
#include "youbin.h"
#include "server.h"
@@ -148,6 +151,15 @@
signal(SIGTERM, sig_quit);
@@ -151,6 +154,15 @@
signal(SIGHUP, sig_hup);
signal(SIGALRM, sig_alarm);
+
+ /*Go to background. This part was modified locally by Masafumi NAKANE
+ <max@FreeBSD.org>, and is used only on FreeBSD.*/
+#ifdef __FreeBSD__
@ -23,6 +22,16 @@
+ kill(getpid(), SIGTERM);
+ }
+#endif
+
/* Dive into main loop. Don't use setjmp() and longjmp(),
because list maintenance routines are in critical section. */
alarm(UNIT_TIME);
@@ -359,7 +371,7 @@
#endif
if( !(sp->mode.head_list) ) {
send_packet(buff, sp); /* Send header and so on. */
- retrun;
+ return;
}
line = buff + strlen(buff);

View file

@ -0,0 +1,11 @@
--- client.c.orig Thu May 8 12:34:44 2003
+++ client.c Mon Aug 18 10:30:05 2003
@@ -400,7 +400,7 @@
if( *config_file == '\0' ){
if (env)
- strncpy ( rcfile, env, sizeof(rcsfile) - strlen(youbinrc) - 1);
+ strncpy ( rcfile, env, sizeof(rcfile) - strlen(youbinrc) - 1);
else if ((pwent = (struct passwd *) getpwuid (getuid ()))
&& pwent->pw_dir)
strcpy ( rcfile, pwent->pw_dir);