]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd-network/dhcp6-protocol.h
dhcp6: Sanitize DHCPv6 IA option parsing
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 4 Jan 2018 13:11:41 +0000 (15:11 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 4 Jan 2018 13:22:43 +0000 (15:22 +0200)
commit3bc424a3cc0bacc688ec2f4f93a5560fb4ca393b
treed664034b7e4deeb005a5d6566990b111c78ea327
parente0026dcbd21b172d51ac05e476044ac9504c1f71
dhcp6: Sanitize DHCPv6 IA option parsing

Sanitize code for parsing DHCPv6 IA NA and TA options and their
nested Status options so that the options can be fully and
properly ignored should they not be conformant to the specification.

Do this by defining a proper DHCP6Option structure and sending that
structure to the parsing function. The parsing function will then
not manipulate either any option data pointers or their lengths in
order to iterate over the current option. Needless to say, this
affects a few files including the test program.
src/libsystemd-network/dhcp6-internal.h
src/libsystemd-network/dhcp6-option.c
src/libsystemd-network/dhcp6-protocol.h
src/libsystemd-network/sd-dhcp6-client.c
src/libsystemd-network/test-dhcp6-client.c