|
From: | Skirmantas |
Subject: | [lwip-devel] [bug #37176] Memory misalignment due to enumeration size when using memory pools |
Date: | Thu, 23 Aug 2012 15:30:45 +0000 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0 |
URL: <http://savannah.nongnu.org/bugs/?37176> Summary: Memory misalignment due to enumeration size when using memory pools Project: lwIP - A Lightweight TCP/IP stack Submitted by: xlog Submitted on: Thu 23 Aug 2012 15:30:44 GMT Category: pbufs Severity: 3 - Normal Item Group: Faulty Behaviour Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: lwIP version: 1.4.0 _______________________________________________________ Details: 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++; ) _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?37176> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |