[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #49648] Always check whether netif_default is NULL
From: |
David van Moolenbroek |
Subject: |
[lwip-devel] [bug #49648] Always check whether netif_default is NULL |
Date: |
Sat, 17 Dec 2016 20:38:05 -0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0 |
URL:
<http://savannah.nongnu.org/bugs/?49648>
Summary: Always check whether netif_default is NULL
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: dcvmoole
Submitted on: Fri 18 Nov 2016 10:43:13 PM GMT
Category: None
Severity: 3 - Normal
Item Group: Crash Error
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
lwIP version: git head
_______________________________________________________
Details:
There may be cases where there is no default interface, for example when a
real interface has not (yet) been configured. I ran into a crash while
attempting to route a link-local address on a loopback device in that
situation. Attached patch should resolve that.
(I'm not sure whether to file these things as bugs or patches by the way..)
===
In general, netif_default may be NULL, and various places in the code already
check for this case before attempting to dereference the netif_default
pointer. Some places do not perform this check though, and may cause null
pointer dereferences if netif_default is not set. This patch adds NULL checks
to those places as well.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 18 Nov 2016 10:43:13 PM GMT Name:
0001-Always-check-whether-netif_default-is-NULL.patch Size: 3kB By:
dcvmoole
<http://savannah.nongnu.org/bugs/download.php?file_id=39014>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?49648>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-devel] [bug #49648] Always check whether netif_default is NULL,
David van Moolenbroek <=