mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
Patch from vendor. From the ChangeLog:
2001-11-27 Flavio Veloso <flaviovs@magnux.com> * gnuserv.c: Fix a potential buffer overflow in permitted() that may allow the client to execute code on the server.
This commit is contained in:
parent
84433f4268
commit
9f6e68c273
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=50722
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= libgtop
|
||||
PORTVERSION= 1.0.12
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel gnome
|
||||
MASTER_SITES= ${MASTER_SITE_GNOME}
|
||||
MASTER_SITE_SUBDIR= stable/sources/libgtop
|
||||
|
15
devel/libgtop/files/patch-src::daemon::gnuserv.c
Normal file
15
devel/libgtop/files/patch-src::daemon::gnuserv.c
Normal file
@ -0,0 +1,15 @@
|
||||
--- src/daemon/gnuserv.c.orig Thu Nov 29 08:58:40 2001
|
||||
+++ src/daemon/gnuserv.c Thu Nov 29 08:58:17 2001
|
||||
@@ -200,6 +200,12 @@
|
||||
|
||||
auth_data_len = atoi (buf);
|
||||
|
||||
+ if (auth_data_len < 1 || auth_data_len > sizeof(buf)) {
|
||||
+ syslog_message(LOG_WARNING,
|
||||
+ "Invalid data length supplied by client");
|
||||
+ return FALSE;
|
||||
+ }
|
||||
+
|
||||
if (timed_read (fd, buf, auth_data_len, AUTH_TIMEOUT, 0) != auth_data_len)
|
||||
return FALSE;
|
||||
|
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= libgtop
|
||||
PORTVERSION= 1.0.12
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel gnome
|
||||
MASTER_SITES= ${MASTER_SITE_GNOME}
|
||||
MASTER_SITE_SUBDIR= stable/sources/libgtop
|
||||
|
15
devel/libgtop2/files/patch-src::daemon::gnuserv.c
Normal file
15
devel/libgtop2/files/patch-src::daemon::gnuserv.c
Normal file
@ -0,0 +1,15 @@
|
||||
--- src/daemon/gnuserv.c.orig Thu Nov 29 08:58:40 2001
|
||||
+++ src/daemon/gnuserv.c Thu Nov 29 08:58:17 2001
|
||||
@@ -200,6 +200,12 @@
|
||||
|
||||
auth_data_len = atoi (buf);
|
||||
|
||||
+ if (auth_data_len < 1 || auth_data_len > sizeof(buf)) {
|
||||
+ syslog_message(LOG_WARNING,
|
||||
+ "Invalid data length supplied by client");
|
||||
+ return FALSE;
|
||||
+ }
|
||||
+
|
||||
if (timed_read (fd, buf, auth_data_len, AUTH_TIMEOUT, 0) != auth_data_len)
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user