patch #6528: the buffer used for IP_FRAG_USES_STATIC_BUF could be too small depending on MEM_ALIGNMENT

This commit is contained in:
goldsimon 2009-02-18 16:54:02 +00:00
parent 7b6c11360f
commit 96b788bea7
2 changed files with 5 additions and 1 deletions

View File

@ -72,6 +72,10 @@ HISTORY
++ Bugfixes: ++ Bugfixes:
2009-02-18 Simon Goldschmidt (Jonathan Larmour and Bill Auerbach)
* ip_frag.c: patch #6528: the buffer used for IP_FRAG_USES_STATIC_BUF could be
too small depending on MEM_ALIGNMENT
2009-02-16 Simon Goldschmidt 2009-02-16 Simon Goldschmidt
* sockets.h/.c, api_*.h/.c: fixed arguments of socket functions to match the standard; * sockets.h/.c, api_*.h/.c: fixed arguments of socket functions to match the standard;
converted size argument of netconn_write to 'size_t' converted size argument of netconn_write to 'size_t'

View File

@ -608,7 +608,7 @@ nullreturn:
#if IP_FRAG #if IP_FRAG
#if IP_FRAG_USES_STATIC_BUF #if IP_FRAG_USES_STATIC_BUF
static u8_t buf[LWIP_MEM_ALIGN_SIZE(IP_FRAG_MAX_MTU)]; static u8_t buf[LWIP_MEM_ALIGN_SIZE(IP_FRAG_MAX_MTU + MEM_ALIGNMENT - 1)];
#endif /* IP_FRAG_USES_STATIC_BUF */ #endif /* IP_FRAG_USES_STATIC_BUF */
/** /**