|
From: | Jiri Dobry |
Subject: | [lwip-devel] [bug #35587] Uninitialized pointer |
Date: | Wed, 22 Feb 2012 08:06:14 +0000 |
User-agent: | Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) |
URL: <http://savannah.nongnu.org/bugs/?35587> Summary: Uninitialized pointer Project: lwIP - A Lightweight TCP/IP stack Submitted by: jdobry Submitted on: Wed Feb 22 08:06:13 2012 Category: None 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: File src/core/timers.c contain uninitialized pointer next_timeout. LWIP crash on startup when memory is not initialized to zeroes. Fix is simple like this: .......... /** Initialize this module */ void sys_timeouts_init(void) { + next_timeout = NULL; #if IP_REASSEMBLY .......... _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?35587> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |