summaryrefslogtreecommitdiff
path: root/src/regress
diff options
context:
space:
mode:
authortb <>2022-01-04 20:17:07 +0000
committertb <>2022-01-04 20:17:07 +0000
commit6da8a2384aedc4bf32ae2540bf15c32ff1f208fe (patch)
tree41e77008e192a5ddf738116c0af4c65c872f0282 /src/regress
parenta25565ae3b2b126c8949d6f47ebc3b98a26e4c7c (diff)
downloadopenbsd-6da8a2384aedc4bf32ae2540bf15c32ff1f208fe.tar.gz
openbsd-6da8a2384aedc4bf32ae2540bf15c32ff1f208fe.tar.bz2
openbsd-6da8a2384aedc4bf32ae2540bf15c32ff1f208fe.zip
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 'src/regress')
0 files changed, 0 insertions, 0 deletions