Changeset 1944
- Timestamp:
- 08/18/2007 09:44:08 AM (14 months ago)
- Location:
- branches/lighttpd-1.4.x
- Files:
-
- 4 modified
-
NEWS (modified) (1 diff)
-
src/mod_fastcgi.c (modified) (2 diffs)
-
src/mod_scgi.c (modified) (2 diffs)
-
src/spawn-fcgi.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/lighttpd-1.4.x/NEWS
r1942 r1944 17 17 * fixed endless loop on shrinked files with sendfile() on BSD (#1289) 18 18 * fixed counter overrun in ?auto in mod_status (#909) 19 * fixed too aggresive caching of nested conditionals 19 * fixed too aggresive caching of nested conditionals (#41) 20 * fixed possible overflow in unix-socket path checks on BSD (#713) 20 21 * removed config-check if passwd files exist (#1188) 21 22 -
branches/lighttpd-1.4.x/src/mod_fastcgi.c
r1882 r1944 42 42 43 43 #include "sys-socket.h" 44 45 46 #ifndef UNIX_PATH_MAX47 # define UNIX_PATH_MAX 10848 #endif49 44 50 45 #ifdef HAVE_SYS_UIO_H … … 1255 1250 if (!buffer_is_empty(host->unixsocket)) { 1256 1251 /* unix domain socket */ 1257 1258 if (host->unixsocket->used > UNIX_PATH_MAX - 2) { 1252 struct sockaddr_un un; 1253 1254 if (host->unixsocket->used > sizeof(un.sun_path) - 2) { 1259 1255 log_error_write(srv, __FILE__, __LINE__, "sbsbsbs", 1260 1256 "unixsocket is too long in:", -
branches/lighttpd-1.4.x/src/mod_scgi.c
r1882 r1944 31 31 32 32 #include "sys-socket.h" 33 34 35 #ifndef UNIX_PATH_MAX36 # define UNIX_PATH_MAX 10837 #endif38 33 39 34 #ifdef HAVE_SYS_UIO_H … … 1028 1023 if (!buffer_is_empty(df->unixsocket)) { 1029 1024 /* unix domain socket */ 1030 1031 if (df->unixsocket->used > UNIX_PATH_MAX - 2) { 1025 struct sockaddr_un un; 1026 1027 if (df->unixsocket->used > sizeof(un.sun_path) - 2) { 1032 1028 log_error_write(srv, __FILE__, __LINE__, "s", 1033 1029 "path of the unixdomain socket is too large"); -
branches/lighttpd-1.4.x/src/spawn-fcgi.c
r1872 r1944 25 25 26 26 #define FCGI_LISTENSOCK_FILENO 0 27 28 #ifndef UNIX_PATH_MAX29 # define UNIX_PATH_MAX 10830 #endif31 27 32 28 #include "sys-socket.h" … … 274 270 int pid_fd = -1; 275 271 int nofork = 0; 272 struct sockaddr_un un; 273 const size_t sun_path_len = sizeof(un.sun_path); 276 274 277 275 i_am_root = (getuid() == 0); … … 310 308 } 311 309 312 if (unixsocket && strlen(unixsocket) > UNIX_PATH_MAX- 1) {310 if (unixsocket && strlen(unixsocket) > sun_path_len - 1) { 313 311 fprintf(stderr, "%s.%d: %s\n", 314 312 __FILE__, __LINE__,

