odhcp6c: fix possible stack corruption when parsing proc if_inet6
authorHans Dedecker <dedeckeh@gmail.com>
Tue, 7 Feb 2017 21:32:57 +0000 (22:32 +0100)
committerHans Dedecker <hans.dedecker@technicolor.com>
Wed, 8 Feb 2017 09:50:06 +0000 (10:50 +0100)
commitcfd986c389c59cc8199a42bd797863bdb0eba6b7
tree5ede4c9a39c3219657a24d3f529e66eb7f193390
parentc13b6a05dbd9174356cc4b7fd1edf39445efd982
odhcp6c: fix possible stack corruption when parsing proc if_inet6

Fix buffer overflow when storing the IPv6 address in addr_buf as
the trailing zero was out of bounds.
Fix possible buffer overflow when storing the interface name in
name as interface name can contain IF_NAMESIZE characters.

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
src/odhcp6c.c