Lakshitha Perera reported a potential out-of-bounds write in
opt_set_dns_search() at revision f8df3f1, where an excessively long
DNS search domain list configured via --dhcp-search could overflow the
opts[119].s buffer.
The original root cause (slen initialised to -1 inflating the max_len
counter) was already eliminated by commit 64e69136ecbc ("dhcp: Add
option configuration tracking with enum opt_conf"). These two patches
address the remaining robustness concerns:
1/2: Change opts[].slen from int to unsigned int, now that negative
value is no longer used.
2/2: Add an explicit bounds check against sizeof(opts[119].s) before
the memcpy() in opt_set_dns_search().
Reported-by: Lakshitha Perera