buglwIP - A Lightweight TCP/IP stack - Bugs: bug #37176, Memory misalignment due to...

 
 

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

bug #37176: Memory misalignment due to enumeration size when using memory pools

Submitted by:  Skirmantas <xlog>
Submitted on:  Thu 23 Aug 2012 03:30:44 PM UTC  
 
Category: pbufsSeverity: 3 - Normal
Item Group: Faulty BehaviourStatus: Duplicate
Privacy: PublicAssigned to: Simon Goldschmidt <goldsimon>
Open/Closed: ClosedPlanned Release: None
lwIP version: 1.4.0

Thu 23 Aug 2012 06:04:29 PM UTC, comment #1:

This is a duplicate to bug #33545 and bug #37158 (from this week!) and is already fixed in git, so the fix will be released with 1.4.1.

Simon Goldschmidt <goldsimon>
Project AdministratorIn charge of this item.
Thu 23 Aug 2012 03:30:44 PM UTC, original submission:

Then using memory pools mem_malloc() function will return misaligned memory adress if the size of enum memp_t is not equal to MEM_ALIGNMENT.
(struct memp_malloc_helper will be the same size as memp_t, resulting in misaligment after

/* and return a pointer to the memory directly after the struct memp_malloc_helper */
element++;
)

Skirmantas <xlog>

 

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 (Posted a comment)
  • -unavailable- added by xlog (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
    Thu 23 Aug 2012 06:04:29 PM UTCgoldsimonStatusNone=>Duplicate
      Assigned toNone=>goldsimon
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1