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!

Submitter:  hanhui <hanhui03>
Submitted:  Fri 20 Mar 2015 08:26:39 AM UTC
   
 
Category:  IPv6 Severity:  3 - Normal
Item Group:  Crash Error Status:  Fixed
Privacy:  Public Assigned to:  idelamer
Open/Closed:  Closed Planned 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>
Group Member
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>
Group 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>

 

(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 idelamer (Posted a comment)
  • -email is unavailable- added by gradator (Posted a comment)
  • -email is unavailable- added by hanhui03 (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
    2015-03-20 idelamer StatusNone Fixed
        Assigned toNone idelamer
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-aa77.
    Corresponding source code