[pkg-lighttpd] r285 - in lighttpd/trunk/debian: . patches

madcoder at alioth.debian.org madcoder at alioth.debian.org
Wed Feb 27 15:56:50 UTC 2008


Author: madcoder
Date: 2008-02-27 15:56:49 +0000 (Wed, 27 Feb 2008)
New Revision: 285

Added:
   lighttpd/trunk/debian/patches/05_fdevent_fix.dpatch
Modified:
   lighttpd/trunk/debian/changelog
   lighttpd/trunk/debian/patches/00list
Log:
Add patch for 466663


Modified: lighttpd/trunk/debian/changelog
===================================================================
--- lighttpd/trunk/debian/changelog	2008-01-30 09:31:29 UTC (rev 284)
+++ lighttpd/trunk/debian/changelog	2008-02-27 15:56:49 UTC (rev 285)
@@ -1,21 +1,12 @@
-lighttpd (1.4.18-2~bpo40+2) etch-backports; urgency=low
+lighttpd (1.4.18-2) unstable; urgency=high
 
-  * Rebuild for Etch backports from the proper svn.
-
- -- Pierre Habouzit <madcoder at debian.org>  Wed, 30 Jan 2008 10:30:39 +0100
-
-lighttpd (1.4.18-2~bpo40+1) etch-backports; urgency=low
-
-  * Rebuild for Etch backports.
-
- -- Pierre Habouzit <madcoder at debian.org>  Sat, 26 Jan 2008 17:32:28 +0100
-
-lighttpd (1.4.18-2) UNRELEASED; urgency=low
-
   * Move the aliases on /doc/ and /images/ mandated by policy at the end to
     circumvent #445459.
+  * Add patches/05_fdevent_fix.dpatch to fix possible remote DoS
+    (Closes: 466663).
+  * bump urgency for security fix.
 
- -- Pierre Habouzit <madcoder at debian.org>  Thu, 20 Dec 2007 13:35:57 +0100
+ -- Pierre Habouzit <madcoder at debian.org>  Wed, 27 Feb 2008 16:56:16 +0100
 
 lighttpd (1.4.18-1) unstable; urgency=low
 

Modified: lighttpd/trunk/debian/patches/00list
===================================================================
--- lighttpd/trunk/debian/patches/00list	2008-01-30 09:31:29 UTC (rev 284)
+++ lighttpd/trunk/debian/patches/00list	2008-02-27 15:56:49 UTC (rev 285)
@@ -1,4 +1,4 @@
 02_fastcgi_detach.dpatch
 03_ldap_leak_bugfix.dpatch
 04_ldap_build_filter_fix.dpatch
-
+05_fdevent_fix.dpatch

Added: lighttpd/trunk/debian/patches/05_fdevent_fix.dpatch
===================================================================
--- lighttpd/trunk/debian/patches/05_fdevent_fix.dpatch	                        (rev 0)
+++ lighttpd/trunk/debian/patches/05_fdevent_fix.dpatch	2008-02-27 15:56:49 UTC (rev 285)
@@ -0,0 +1,43 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+#
+## DP: From 6b77fd21b58b6bfc10bd01fd0ce4e5f4ced0d5d9 Mon Sep 17 00:00:00 2001
+## DP: From: =?utf-8?q?Stefan=20B=C3=BChler?= <stbuehler at web.de>
+## DP: Date: Wed, 13 Feb 2008 00:07:22 +0100
+## DP: Subject: [PATCH] Fix #372 + #1562
+## DP: 
+## DP: ---
+## DP:  src/fdevent_solaris_devpoll.c |    2 +-
+## DP:  src/server.c                  |    3 ---
+## DP:  2 files changed, 1 insertions(+), 4 deletions(-)
+## DP: 
+ at DPATCH@
+diff --git a/src/fdevent_solaris_devpoll.c b/src/fdevent_solaris_devpoll.c
+index f77daef..76414a4 100644
+--- a/src/fdevent_solaris_devpoll.c
++++ b/src/fdevent_solaris_devpoll.c
+@@ -67,7 +67,7 @@ static int fdevent_solaris_devpoll_poll(fdevents *ev, int timeout_ms) {
+ 	int ret;
+ 
+ 	dopoll.dp_timeout = timeout_ms;
+-	dopoll.dp_nfds = ev->maxfds;
++	dopoll.dp_nfds = ev->maxfds - 1;
+ 	dopoll.dp_fds = ev->devpollfds;
+ 
+ 	ret = ioctl(ev->devpoll_fd, DP_POLL, &dopoll);
+diff --git a/src/server.c b/src/server.c
+index 052130a..585a973 100644
+--- a/src/server.c
++++ b/src/server.c
+@@ -697,9 +697,6 @@ int main (int argc, char **argv) {
+ 			}
+ 		}
+ 
+-		/* #372: solaris need some fds extra for devpoll */
+-		if (rlim.rlim_cur > 10) rlim.rlim_cur -= 10;
+-
+ 		if (srv->event_handler == FDEVENT_HANDLER_SELECT) {
+ 			srv->max_fds = rlim.rlim_cur < FD_SETSIZE - 200 ? rlim.rlim_cur : FD_SETSIZE - 200;
+ 		} else {
+-- 
+1.5.3.8
+




More information about the pkg-lighttpd-maintainers mailing list