lwIP - A Lightweight TCP/IP stack - Bugs: bug #25051, lwip_recvfrom problem with udp:...
You are not allowed to post comments on this tracker with your current authentication level.
bug #25051: lwip_recvfrom problem with udp: fromaddr and port uses deleted netbuf
Submitter: | Tamas Somogyi <tsomogyi> | ||
Submitted: | Tue 09 Dec 2008 02:13:47 PM UTC | ||
Category: | sockets/netconn | Severity: | 3 - Normal |
Item Group: | Faulty Behaviour | Status: | Fixed |
Privacy: | Public | Assigned to: | fbernon |
Open/Closed: | Closed | Planned Release: | None |
lwIP version: | CVS Head |
Jump to the original submission
Wed 10 Dec 2008 09:38:22 PM UTC, comment #6: |
Frédéric Bernon <fbernon> |
Wed 10 Dec 2008 11:32:14 AM UTC, comment #5: Go for it. Thanks both for finding and fixing this bug. |
Kieran Mansley <kieranm> |
Wed 10 Dec 2008 11:01:37 AM UTC, comment #4: Is there any objection to check in the patch ? |
Frédéric Bernon <fbernon> |
Wed 10 Dec 2008 10:58:57 AM UTC, comment #3: My device using #17011 has been working fine in the test harness for 3 hours, so the fix is good for me. |
Tamas Somogyi <tsomogyi> |
Tue 09 Dec 2008 10:58:07 PM UTC, comment #2: I attach you a modified lwip_recvfrom. Tell me if it's good for you. In this case, I will check in the change.
|
Frédéric Bernon <fbernon> |
Tue 09 Dec 2008 08:06:19 PM UTC, comment #1: It seems you catch a real problem. I will verify that and check in a fix based on the solution.
|
Frédéric Bernon <fbernon> |
Tue 09 Dec 2008 02:13:47 PM UTC, original submission:
At the end of lwip_recvfrom, input address/port is extracted by "addr = netbuf_fromaddr(buf)" for UDP sockets. But "buf" can already be disposed by "netbuf_delete(buf);" in the do-while loop.
|
Tamas Somogyi <tsomogyi> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 7 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2008-12-10 | fbernon | Status | Confirmed | Fixed | |
Open/Closed | Open | Closed | |||
Planned Release | 1.3.1 | ||||
2008-12-09 | fbernon | Attached File | - | Added lwip_recvfrom.txt, #17011 | |
2008-12-09 | fbernon | Status | None | Confirmed | |
Assigned to | None | fbernon | |||
2008-12-09 | tsomogyi | Carbon-Copy | - | Added tsomogyi |
Powered by Savane 3.13-f8d8.
Corresponding source code
Ok, it's check in.