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?)

Submitted by:  Simon Goldschmidt <goldsimon>
Submitted on:  Wed 24 Aug 2011 09:11:08 AM UTC  
 
Category: pbufsSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned 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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 24 Aug 2011 06:21:49 PM UTCgoldsimonStatusNone=>Fixed
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1