summaryrefslogtreecommitdiffstats
path: root/usr.sbin/relayd/config.c
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2014-12-12 05:00:55 +0000
committerjsg <jsg@openbsd.org>2014-12-12 05:00:55 +0000
commit6bcb7e1679bbed939400ca6f776635fea746ab0d (patch)
tree606da5bcc34e042eb7f9eb34204bea23241830e2 /usr.sbin/relayd/config.c
parentBounds check the file path used in the 'w' command. Modified version (diff)
downloadwireguard-openbsd-6bcb7e1679bbed939400ca6f776635fea746ab0d.tar.xz
wireguard-openbsd-6bcb7e1679bbed939400ca6f776635fea746ab0d.zip
Range check the value of the base for typeset -i base x=y. Instead of
erroring for values outside of the range switch to base 10 to match the behaviour of ksh93. As we have a smaller digit alphabet than ksh93 the accepted range is smaller (2-36) than ksh93 (2-64). The other form of setting a base, typeset -i x=base#y already has a range check that errors (as ksh93 also does for that syntax). Fixes a crash found with the afl fuzzer.
Diffstat (limited to 'usr.sbin/relayd/config.c')
0 files changed, 0 insertions, 0 deletions