buglwIP - A Lightweight TCP/IP stack - Bugs: bug #1642, Uninitialized memp data area

 
 

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

bug #1642: Uninitialized memp data area

Submitted by:  None
Submitted on:  Fri 08 Nov 2002 08:39:52 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: ClosedPlanned Release: None
lwIP version: None

Sat 09 Nov 2002 08:30:49 PM UTC, comment #3:

The caller I've found to be concerned is
inside the upd protocol handling. At the moment
I cannot tell the exact function as I did't find it
yet. Of course the
caller should zero the area itself, but this one
does not. I'm not sure if there are others, so
as a general stability improvement I'd prefer
clearing the memory at allocation time.

Martin Glunz <bullshot>
Sat 09 Nov 2002 11:03:39 AM UTC, comment #2:

The caller should be responsible for zeroeing the allocated memp area. Please fix callers instead.

Explicitly zeroeing data in the memp functions itself will downgrade performance on slow-memory architectures considerably.

Leon Woestenberg <likewise>
Project Member
Sat 09 Nov 2002 11:03:19 AM UTC, comment #1:

The caller should be responsible for zeroeing the allocated memp area. Please fix callers instead.

Explicitly zeroeing data in the memp functions itself will downgrade performance on slow-memory architectures considerably.

Leon Woestenberg <likewise>
Project Member
Fri 08 Nov 2002 08:39:52 AM UTC, original submission:

When a memp is allocated by memp_malloc() the data area
may contain random data from former usage. In some cases
this leads to strange behaviour. The data area of the
freshly alloc'd memp should be set to zero.

Anonymous

 

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

Date Changed By Updated Field Previous Value => Replaced By
Mon 11 Nov 2002 02:49:59 PM UTClikewiseStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1