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

Submitter:  Skirmantas <xlog>
Submitted:  Thu 23 Aug 2012 03:30:44 PM UTC
   
 
Category:  pbufs Severity:  3 - Normal
Item Group:  Faulty Behaviour Status:  Duplicate
Privacy:  Public Assigned to:  goldsimon
Open/Closed:  Closed Planned 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>
Group administrator
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>

 

(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 goldsimon (Posted a comment)
  • -email is unavailable- added by xlog (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
    2012-08-23 goldsimon StatusNone Duplicate
        Assigned toNone goldsimon
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code