Address CAN-2003-0466.

Submitted/approved by:	security-officer
This commit is contained in:
Daniel Harris 2003-07-31 16:07:05 +00:00
parent 5f29a35ecb
commit beff7f49ae
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=86057
4 changed files with 24 additions and 2 deletions

View file

@ -9,7 +9,7 @@
PORTNAME= wu-ftpd+ipv6
PORTVERSION= 2.6.2
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= ftp ipv6
MASTER_SITES= ftp://ftp.wu-ftpd.org/pub/wu-ftpd/
DISTNAME= wu-ftpd-${PORTVERSION}

View file

@ -0,0 +1,11 @@
--- src/realpath.c.orig Mon Jul 28 16:18:15 2003
+++ src/realpath.c Mon Jul 28 16:18:44 2003
@@ -299,7 +299,7 @@
rootd = 0;
if (*wbuf) {
- if (strlen(resolved) + strlen(wbuf) + rootd + 1 > MAXPATHLEN) {
+ if (strlen(resolved) + strlen(wbuf) + !rootd + 1 > MAXPATHLEN) {
errno = ENAMETOOLONG;
goto err1;
}

View file

@ -9,7 +9,7 @@
PORTNAME= wu-ftpd
PORTVERSION= 2.6.2
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= ftp
MASTER_SITES= ftp://ftp.wu-ftpd.org/pub/wu-ftpd/

View file

@ -0,0 +1,11 @@
--- src/realpath.c.orig Mon Jul 28 16:18:15 2003
+++ src/realpath.c Mon Jul 28 16:18:44 2003
@@ -299,7 +299,7 @@
rootd = 0;
if (*wbuf) {
- if (strlen(resolved) + strlen(wbuf) + rootd + 1 > MAXPATHLEN) {
+ if (strlen(resolved) + strlen(wbuf) + !rootd + 1 > MAXPATHLEN) {
errno = ENAMETOOLONG;
goto err1;
}