3c5a9b58e0
* it's not any less broken than the previous version, but at least it gives us a recent base to hack on. aja@ agrees
17 lines
530 B
Plaintext
17 lines
530 B
Plaintext
$OpenBSD: patch-src_daemon_gnuserv_c,v 1.4 2009/10/16 10:56:04 jasper Exp $
|
|
--- src/daemon/gnuserv.c.orig Sun Apr 19 01:29:49 2009
|
|
+++ src/daemon/gnuserv.c Fri Oct 16 02:28:09 2009
|
|
@@ -203,6 +203,12 @@ permitted (u_long host_addr, int fd)
|
|
return FALSE;
|
|
}
|
|
|
|
+ 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;
|
|
|