|
From: | Bill Auerbach |
Subject: | [lwip-devel] [bug #35574] Lockup in httpd (the older non-SSI/CGI httpd) |
Date: | Mon, 20 Feb 2012 23:10:48 +0000 |
User-agent: | Mozilla/5.0 (Windows NT 5.1; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 |
URL: <http://savannah.nongnu.org/bugs/?35574> Summary: Lockup in httpd (the older non-SSI/CGI httpd) Project: lwIP - A Lightweight TCP/IP stack Submitted by: billauerbach Submitted on: Mon 20 Feb 2012 06:10:47 PM EST Category: Contrib Severity: 3 - Normal Item Group: Crash Error Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: lwIP version: 1.4.0 _______________________________________________________ Details: This is for the older version httpd that may be included with 1.4.1. This may also be useful if it's in use by those not using the latest. Bug: send_data under what appears to be a time dependent condition will call tcp_write with arg=NULL and len=0. This causes an LWIP_ERROR halt error (programmer violates API). One could argue that with len=0 it never access the NULL pointer and tcp_write could just return if len==0. OTOH send_data could include a test for len==0 and simply return and not call tcp_write. In any case, this caused my program to hang (fortunately I was in a debugger and knew why). _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?35574> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |