lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #8425] netconn_free needs to check validity of semap


From: TabascoEye
Subject: [lwip-devel] [patch #8425] netconn_free needs to check validity of semaphores
Date: Thu, 27 Mar 2014 15:41:21 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0

URL:
  <http://savannah.nongnu.org/patch/?8425>

                 Summary: netconn_free needs to check validity of semaphores
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: tabascoeye
            Submitted on: Do 27 Mär 2014 15:41:20 GMT
                Category: sockets/netconn
                Priority: 7 - High
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

When a netconn_free() is called a second time on an already free'd netconn,
the sys_sem_free(&conn->op_completed); call is being executed without first
checking if the sem is still valid.
On my sys_arch implementation, calling sys_sem_free() on an already freed
semaphore leads to an assertion.

I propose in the attached patch that a check for validity of the semaphore
should be done before freeing and invalidating it (again).



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Do 27 Mär 2014 15:41:20 GMT  Name: lwip_netcon_free.patch  Size: 475B  
By: tabascoeye

<http://savannah.nongnu.org/patch/download.php?file_id=31061>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?8425>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

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