summaryrefslogtreecommitdiff
path: root/usr.bin/ktrace
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-01-04 20:17:08 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-01-04 20:17:08 +0000
commit008255097476203b17f2ca845ea9df08f1236838 (patch)
tree0f8cabddfe5d9f077a74eceb0ffd2d0102348496 /usr.bin/ktrace
parent111099582606c3481d07017d576fdb9837ef0e15 (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/ktrace')
0 files changed, 0 insertions, 0 deletions