diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2022-01-04 20:17:08 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2022-01-04 20:17:08 +0000 |
commit | 008255097476203b17f2ca845ea9df08f1236838 (patch) | |
tree | 0f8cabddfe5d9f077a74eceb0ffd2d0102348496 /usr.bin/timeout | |
parent | 111099582606c3481d07017d576fdb9837ef0e15 (diff) |
Add a length check to make_addressPrefix()
Make the callers pass in the afi so that make_addressPrefix() can check
prefixlen to be reasonable. If the afi is anything else than IPv4 or
IPv6, cap its length at the length needed for IPv6. This way we avoid
arbitrary out-of-bounds reads if the caller decides to pass in something
stupid.
ok inoguchi jsing
Diffstat (limited to 'usr.bin/timeout')
0 files changed, 0 insertions, 0 deletions