mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
6lowpan: fix buffer overrun in decompression
This commit is contained in:
parent
e06dce55b1
commit
b96b995d76
@ -1353,7 +1353,7 @@ void lowpan_iphc_decoding(uint8_t *data, uint8_t length, net_if_eui64_t *s_addr,
|
||||
case (0x03): {
|
||||
/* 0-bits */
|
||||
memcpy(&(ipv6_buf->srcaddr.uint8[0]), &ll_prefix[0], 2);
|
||||
memset(&(ipv6_buf->srcaddr.uint8[2]), 0, 20);
|
||||
memset(&(ipv6_buf->srcaddr.uint8[2]), 0, 6);
|
||||
memcpy(&(ipv6_buf->srcaddr.uint8[8]), &s_addr->uint8[0], 8);
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user