lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #26722] Must zero all fields.


From: Powe Nui
Subject: [lwip-devel] [bug #26722] Must zero all fields.
Date: Tue, 02 Jun 2009 11:51:16 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042523 Ubuntu/9.04 (jaunty) Firefox/3.0.10

URL:
  <http://savannah.nongnu.org/bugs/?26722>

                 Summary: Must zero all fields.
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: pwn
            Submitted on: Tue 02 Jun 2009 11:51:15 AM GMT
                Category: sockets
                Severity: 3 - Normal
              Item Group: Crash Error
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: CVS Head

    _______________________________________________________

Details:

There is a bug.
The write_msg and write_offset are not zeroed.

The bug takes place randomly after many time.
It crashes on LWIP_ASSERT in api_msg.c.

The fix:
In api_msg.c:

Before:
conn->socket    = -1;
conn->callback  = callback;
conn->recv_avail = 0;

After:
conn->socket    = -1;
conn->callback  = callback;
conn->write_msg   = NULL; /* !!! */
conn->write_offset= 0; /* !!! */
conn->recv_avail = 0;


Thank you for you attention.




    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?26722>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]