[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #34733] Null poiter exception with SOCKET_DEBUG.
From: |
Boberek |
Subject: |
[lwip-devel] [bug #34733] Null poiter exception with SOCKET_DEBUG. |
Date: |
Thu, 03 Nov 2011 11:13:24 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 |
URL:
<http://savannah.nongnu.org/bugs/?34733>
Summary: Null poiter exception with SOCKET_DEBUG.
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: bober
Submitted on: Thu 03 Nov 2011 11:13:23 AM GMT
Category: sockets
Severity: 3 - Normal
Item Group: Faulty Behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release:
lwIP version: CVS Head
_______________________________________________________
Details:
I am debugging stack with defined SOCKET_DEBUG.
In line 761-762 occur null pointer exception.
> if (*fromlen > saddr.sa.sa_len) {
> *fromlen = saddr.sa.sa_len;
The reason is line 739:
>#if !SOCKETS_DEBUG
> if (from && fromlen)
>#endif /* !SOCKETS_DEBUG */
Maybe add line
> if (from && fromlen)
before lines:
> if (*fromlen > saddr.sa.sa_len) {
> *fromlen = saddr.sa.sa_len;
> }
> MEMCPY(from, &saddr, *fromlen);
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?34733>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-devel] [bug #34733] Null poiter exception with SOCKET_DEBUG.,
Boberek <=