mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-11 06:40:28 +00:00
* pbuf.c: Use s32_t in pbuf_realloc(), as an s16_t can't reliably hold
the difference between two u16_t's.
This commit is contained in:
parent
748ba22a19
commit
cd19d81411
@ -117,6 +117,10 @@ HISTORY
|
|||||||
|
|
||||||
++ Bug fixes:
|
++ Bug fixes:
|
||||||
|
|
||||||
|
2007-04-17 Jonathan Larmour
|
||||||
|
* pbuf.c: Use s32_t in pbuf_realloc(), as an s16_t can't reliably hold
|
||||||
|
the difference between two u16_t's.
|
||||||
|
|
||||||
2007-04-12 Jonathan Larmour
|
2007-04-12 Jonathan Larmour
|
||||||
* icmp.c: Reset IP header TTL in ICMP ECHO responses (bug #19580).
|
* icmp.c: Reset IP header TTL in ICMP ECHO responses (bug #19580).
|
||||||
|
|
||||||
|
@ -395,7 +395,7 @@ pbuf_realloc(struct pbuf *p, u16_t new_len)
|
|||||||
{
|
{
|
||||||
struct pbuf *q;
|
struct pbuf *q;
|
||||||
u16_t rem_len; /* remaining length */
|
u16_t rem_len; /* remaining length */
|
||||||
s16_t grow;
|
s32_t grow;
|
||||||
|
|
||||||
LWIP_ASSERT("pbuf_realloc: sane p->flags", p->flags == PBUF_FLAG_POOL ||
|
LWIP_ASSERT("pbuf_realloc: sane p->flags", p->flags == PBUF_FLAG_POOL ||
|
||||||
p->flags == PBUF_FLAG_ROM ||
|
p->flags == PBUF_FLAG_ROM ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user