buglwIP - A Lightweight TCP/IP stack - Bugs: bug #34112, Odd check in pbuf_alloced_custom...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #34112: Odd check in pbuf_alloced_custom (typo?)

Submitter:  Simon Goldschmidt <goldsimon>
Submitted:  Wed 24 Aug 2011 09:11:08 AM UTC
   
 
Category:  pbufs Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned Release:  None
lwIP version:  CVS Head

Wed 24 Aug 2011 06:21:49 PM UTC, comment #1: 

Fixed, thanks for reporting.

BTW: it worked because currently, the only usage of this was in the ip_frag code, which did work because the two values were equal, so '<' did no harm... :-(

Simon Goldschmidt <goldsimon>
Group administrator
Wed 24 Aug 2011 09:11:08 AM UTC, original submission:  

pbuf_alloced_custom(): should

if (LWIP_MEM_ALIGN_SIZE(offset) + length < payload_mem_len)

be

if (LWIP_MEM_ALIGN_SIZE(offset) + length > payload_mem_len)

instead???

Simon Goldschmidt <goldsimon>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by goldsimon (Submitted the item)
  •  

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-08-24 goldsimon StatusNone Fixed
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code