mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-24 15:14:06 +00:00
Fix bug #48300: Private mempools allocate foreign memory
Add padding to memory pool mem according to alignment
This commit is contained in:
parent
502f08cb92
commit
98c741976b
@ -91,7 +91,7 @@ extern const struct memp_desc* const memp_pools[MEMP_MAX];
|
||||
#else /* MEMP_MEM_MALLOC */
|
||||
|
||||
#define LWIP_MEMPOOL_DECLARE(name,num,size,desc) u8_t memp_memory_ ## name ## _base \
|
||||
[((num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size)))]; \
|
||||
[LWIP_MEM_ALIGN_SIZE(((num) * (MEMP_SIZE + MEMP_ALIGN_SIZE(size))))]; \
|
||||
\
|
||||
static struct memp *memp_tab_ ## name; \
|
||||
\
|
||||
|
Loading…
Reference in New Issue
Block a user