mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
Added an assert that should trigger bug #41009 (IPv6 reassembly broken on 64-bit platforms)
This commit is contained in:
parent
381a7b110a
commit
f311045320
@ -349,6 +349,8 @@ ip6_reass(struct pbuf *p)
|
||||
|
||||
/* Overwrite Fragment Header with our own helper struct. */
|
||||
iprh = (struct ip6_reass_helper *)p->payload;
|
||||
LWIP_ASSERT("sizeof(struct ip6_reass_helper) <= IP6_FRAG_HLEN",
|
||||
sizeof(struct ip6_reass_helper) <= IP6_FRAG_HLEN);
|
||||
iprh->next_pbuf = NULL;
|
||||
iprh->start = (offset & IP6_FRAG_OFFSET_MASK);
|
||||
iprh->end = (offset & IP6_FRAG_OFFSET_MASK) + len;
|
||||
|
Loading…
Reference in New Issue
Block a user