summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/clang/lib/CodeGen/CGVTables.cpp
diff options
context:
space:
mode:
authorkn <kn@openbsd.org>2020-08-08 12:38:21 +0000
committerkn <kn@openbsd.org>2020-08-08 12:38:21 +0000
commit5a276e38057a1fcce30bdac1a70d87b7572c8bc0 (patch)
tree8706acdeb45c2a4f0646bd1dcb246b563b3a65a6 /gnu/llvm/clang/lib/CodeGen/CGVTables.cpp
parentAdd regression test for snmp(1) UTF-8 support by abusing the oid keyword (diff)
downloadwireguard-openbsd-5a276e38057a1fcce30bdac1a70d87b7572c8bc0.tar.xz
wireguard-openbsd-5a276e38057a1fcce30bdac1a70d87b7572c8bc0.zip
Replace strto*l(3) with strtonum(3)
Some bridge options allow values bigger than the corresponding datatype and thus pass overflowed values to the kernel, not all options to range checks and setting invalid "portno" complains about "portidx" values. Use the same, simpler strtonum() idiom across all options with consistent error messages and proper [U]INT*_MAX defines as max values to match the datatype and all option handlers to be consistent (in less code). Keep deferring option dependent min/max value checking to the ioctl(2) interface, i.e. values documented in ifconfig(8) are not duplicated in strtonum() calls. OK millert
Diffstat (limited to 'gnu/llvm/clang/lib/CodeGen/CGVTables.cpp')
0 files changed, 0 insertions, 0 deletions