<p><b>@miri64</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/11596#discussion_r324416831">sys/net/gnrc/network_layer/ipv6/ext/frag/gnrc_ipv6_ext_frag.c</a>:</p>
<pre style='color:#555'>> +        /* first fragment */
+        uint16_t ipv6_len = byteorder_ntohs(ipv6->len);
+
+        /* not divisible by 8*/
+        if ((pkt->size & 0x7)) {
+            DEBUG("ipv6_ext_frag: fragment length not divisible by 8");
+            goto error_exit;
+        }
+        _set_nh(fh_snip->next, nh);
+        gnrc_pktbuf_remove_snip(pkt, fh_snip);
+        /* TODO: RFC 8200 says "- 8"; determine if `sizeof(ipv6_ext_frag_t)` is
+         * really needed*/
+        rbuf->pkt_len += ipv6_len - pkt->size - sizeof(ipv6_ext_frag_t);
+        if (rbuf->pkt != NULL) {
+            /* first fragment but not first arriving */
+            memcpy(rbuf->pkt->data, pkt->data, pkt->size);
</pre>
<p>Oh sorry. Must have been the mobile view that confused me. Mhhh.. <code>rbuf</code> comes from <code>gnrc_ipv6_ext_frag_rbuf_get()</code> which in turn does not initialize <code>rbuf->pkt</code>. So there are to cases: Either another fragment was already received (<code>rbuf->pkt != NULL</code>), then <code>rbuf->pkt</code> was already resized to the appropriate length until the previously received packet at the link you gave and we land here. If it was not (<code>rbuf->pkt == NULL</code>) <a href="https://github.com/RIOT-OS/RIOT/pull/11596/files#diff-70b063778a3f60ee4d99760ea342b819R221">we just set <code>rbuf->pkt</code> to <code>pkt</code></a> and don't copy at all.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/11596?email_source=notifications&email_token=ABE7WYDQX3KAP4GLX7G2W2LQJSMEFA5CNFSM4HQECP7KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCEXUZ2Q#discussion_r324416831">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYCRFQK4AODUKCAWCILQJSMEFANCNFSM4HQECP7A">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYHKFCEESUQYVUSTOB3QJSMEFA5CNFSM4HQECP7KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCEXUZ2Q.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/11596?email_source=notifications\u0026email_token=ABE7WYDQX3KAP4GLX7G2W2LQJSMEFA5CNFSM4HQECP7KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCEXUZ2Q#discussion_r324416831",
"url": "https://github.com/RIOT-OS/RIOT/pull/11596?email_source=notifications\u0026email_token=ABE7WYDQX3KAP4GLX7G2W2LQJSMEFA5CNFSM4HQECP7KYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCEXUZ2Q#discussion_r324416831",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>