With prefixlen 128, mask_prefix() in rad(8) caused a stack overflow
authorbluhm <bluhm@openbsd.org>
Sun, 16 Sep 2018 08:53:02 +0000 (08:53 +0000)
committerbluhm <bluhm@openbsd.org>
Sun, 16 Sep 2018 08:53:02 +0000 (08:53 +0000)
commit16c642d1fb8ad3e8f2c45129d3f2ef752cbc908a
tree29210982dc9ccae933e91f459181848a3015ba0f
parenta0f924b8c9b18f7537c81c458bcb9a4846a4802d
With prefixlen 128, mask_prefix() in rad(8) caused a stack overflow
in the config parser.  Add an out of bounds check for the in6_addr.
OK florian@
usr.sbin/rad/rad.c