]> git.decadent.org.uk Git - odhcp6c.git/commitdiff
Check for unsupported PD exclusion configuration in dhcpv6_parse_ia
authorBen Hutchings <ben@decadent.org.uk>
Thu, 28 Jan 2016 01:28:32 +0000 (01:28 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 28 Jan 2016 13:33:46 +0000 (13:33 +0000)
We currently only support PD exclusions that only affect bits 64-95 of
the address, so we require:

    32 <= PD prefix length < exclusion prefix length <= 64

The first inequality was not validated, and this could result in a
buffer overflow when generating the next request message.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>

No differences found