1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #3152 from rajithr/patch-2

sixlowpan/ip: Fixing an out of bounds access issue reported by Coverity scan
This commit is contained in:
Martine Lenders 2015-06-03 12:47:01 +02:00
commit 5923f3c389

View File

@ -756,7 +756,7 @@ void ipv6_addr_init_prefix(ipv6_addr_t *out, const ipv6_addr_t *prefix,
out->uint8[bytes] = prefix->uint8[bytes] & mask;
}
memset(&(out[bytes + 1]), 0, 15 - bytes);
memset(&(out->uint8[bytes + 1]), 0, 15 - bytes);
}
void ipv6_net_if_get_best_src_addr(ipv6_addr_t *src, const ipv6_addr_t *dest)