buglwIP - A Lightweight TCP/IP stack - Bugs: bug #1493, Reference to free'd pbuf in...

 
 

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

bug #1493: Reference to free'd pbuf in etharp_arp_input()

Submitted by:  Leon Woestenberg <likewise>
Submitted on:  Thu 24 Oct 2002 09:17:42 AM UTC  
 
Category: NoneSeverity: 3,5
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Leon Woestenberg <likewise>
Open/Closed: ClosedPlanned Release: None
lwIP version: None

Thu 24 Oct 2002 09:17:42 AM UTC, original submission:

etharp_arp_input()
pbuf_free(p);
p = update_arp_entry(&(hdr->sipaddr), &(hdr->shwaddr));

hdr refers to pbuf p, so p may not be freed before hdr is referenced. Fix by using temporary pbuf *q = ...; pbuf_free(p); return q;

Leon Woestenberg <likewise>
Project MemberIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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

Date Changed By Updated Field Previous Value => Replaced By
Wed 06 Nov 2002 10:32:48 AM UTClikewiseOpen/ClosedOpen=>(Error - Not Found)
Mon 04 Nov 2002 02:57:19 PM UTClikewiseStatusNone=>(Error - Not Found)
Mon 04 Nov 2002 11:07:55 AM UTClikewiseAssigned topsheer=>NA
Mon 04 Nov 2002 11:01:13 AM UTClikewiseAssigned toNone=>NA

Back to the top


Powered by Savane 3.1-cleanup1