Address CAN-2003-0466.
Submitted/approved by: security-officer
This commit is contained in:
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
|
@ -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}
|
||||
|
|
11
ftp/wu-ftpd+ipv6/files/patch-as
Normal file
11
ftp/wu-ftpd+ipv6/files/patch-as
Normal 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;
|
||||
}
|
|
@ -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/
|
||||
|
||||
|
|
11
ftp/wu-ftpd/files/patch-as
Normal file
11
ftp/wu-ftpd/files/patch-as
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue