From f311045320850a7930baea24bafb4be9279af901 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Fri, 10 Jan 2014 22:08:01 +0100 Subject: [PATCH] Added an assert that should trigger bug #41009 (IPv6 reassembly broken on 64-bit platforms) --- src/core/ipv6/ip6_frag.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/ipv6/ip6_frag.c b/src/core/ipv6/ip6_frag.c index dcf116a3..77fdde5a 100644 --- a/src/core/ipv6/ip6_frag.c +++ b/src/core/ipv6/ip6_frag.c @@ -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;