Fix bug #48300: Private mempools allocate foreign memory

Add padding to memory pool mem according to alignment
This commit is contained in:
Dirk Ziegelmeier 2016-06-23 20:20:19 +02:00
parent 502f08cb92
commit 98c741976b

View File

@ -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; \
\