lwIP - A Lightweight TCP/IP stack - Bugs: bug #18924, index in etharp.c ( function...
You are not allowed to post comments on this tracker with your current authentication level.
bug #18924: index in etharp.c ( function etharp_arp_input )
Submitter: | None | ||
Submitted: | Thu 01 Feb 2007 04:37:00 AM UTC | ||
Category: | pbufs | Severity: | 3 - Normal |
Item Group: | None | Status: | Invalid |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Closed | Planned Release: | None |
lwIP version: | None |
Thu 01 Feb 2007 05:48:43 AM UTC, comment #3: |
Anonymous |
Thu 01 Feb 2007 05:10:27 AM UTC, comment #2: There is nothing wrong with the original code. i-- as a separate statement will result in i being decremented before it is first used as an array index. It is identical to --i in this context. The first iteration of the loop will therefore access array element 5, and the last iteration will access array element 0.
|
David Empson <dempson> |
Thu 01 Feb 2007 04:40:48 AM UTC, comment #1: Might also work if you change i--; to --i; so that the decrement occurs before the index is utilised. |
Anonymous |
Thu 01 Feb 2007 04:37:00 AM UTC, original submission:
//i = netif->hwaddr_len;
|
Anonymous |
No files currently attached
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 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2007-02-06 | kieranm | Status | None | Invalid | |
Open/Closed | Open | Closed |
Powered by Savane 3.13-f8d8.
Corresponding source code
eeek ... that is correct. good thing I submitted this as anonymous.
:-)