buglwIP - A Lightweight TCP/IP stack - Bugs: bug #44586, nd6_send_rs() pbuf size error!

 
 

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

bug #44586: nd6_send_rs() pbuf size error!

Submitted by:  hanhui <hanhui03>
Submitted on:  Fri 20 Mar 2015 08:26:39 AM UTC  
 
Category: IPv6Severity: 3 - Normal
Item Group: Crash ErrorStatus: Fixed
Privacy: PublicAssigned to: Ivan Delamer <idelamer>
Open/Closed: ClosedPlanned Release: None
lwIP version: git head

Fri 20 Mar 2015 03:04:58 PM UTC, comment #2:

yikes, fixed, thanks for reporting

Ivan Delamer <idelamer>
Project MemberIn charge of this item.
Fri 20 Mar 2015 08:58:25 AM UTC, comment #1:

Hello,

Yeah, I already reported an out of bound here on the lwip-devel mailing list. It was recently introduced by bc08c1d2b7.

I'm not sure your proposed fix is the correct one, though.

Sylvain

Sylvain Rochet <gradator>
Project Member
Fri 20 Mar 2015 08:26:39 AM UTC, original submission:

nd6_send_rs()

p = pbuf_alloc(PBUF_IP, sizeof(struct rs_header) + lladdr_opt_len, PBUF_RAM);
if ((p == NULL) || (p->len < (sizeof(struct rs_header) + lladdr_opt_len))) {

should be:

p = pbuf_alloc(PBUF_IP, sizeof(struct rs_header) + (lladdr_opt_len << 3), PBUF_RAM);
if ((p == NULL) || (p->len < (sizeof(struct rs_header) + (lladdr_opt_len << 3)))) {

hanhui <hanhui03>

 

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 idelamer (Posted a comment)
  • -unavailable- added by gradator (Posted a comment)
  • -unavailable- added by hanhui03 (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
    Fri 20 Mar 2015 03:04:58 PM UTCidelamerStatusNone=>Fixed
      Assigned toNone=>idelamer
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1