Convert many atoi() calls to strtonum(), adding range checks and failure
authorderaadt <deraadt@openbsd.org>
Sat, 18 Apr 2015 18:28:36 +0000 (18:28 +0000)
committerderaadt <deraadt@openbsd.org>
Sat, 18 Apr 2015 18:28:36 +0000 (18:28 +0000)
commita47b6461a15f74beac188483616126ed5e987f93
tree4453af12f02f369f89c8895bcfef1820fdb8576d
parent6d0e9b63214a57d2a8d4601ae6d64f62e423da8e
Convert many atoi() calls to strtonum(), adding range checks and failure
handling along the way.
Reviews by Brendan MacDonell, Jeremy Devenport, florian, doug, millert
48 files changed:
bin/csh/proc.c
bin/ksh/exec.c
bin/ksh/jobs.c
bin/ls/ls.c
bin/pax/options.c
bin/systrace/filter.c
bin/systrace/lex.l
bin/systrace/systrace.c
lib/libc/rpc/getrpcent.c
lib/libskey/skeylogin.c
libexec/comsat/comsat.c
libexec/rpc.rstatd/rstatd.c
libexec/spamd/spamd.c
sbin/fsck/fsck.c
sbin/growfs/growfs.c
sbin/mount_msdos/mount_msdos.c
sbin/newfs/mkfs.c
sbin/newfs_msdos/newfs_msdos.c
sbin/quotacheck/quotacheck.c
sbin/savecore/savecore.c
sbin/shutdown/shutdown.c
sbin/swapctl/swapctl.c
sbin/sysctl/sysctl.c
sbin/wsconsctl/map_scan.l
usr.bin/calendar/calendar.c
usr.bin/calendar/io.c
usr.bin/find/function.c
usr.bin/ipcrm/ipcrm.c
usr.bin/kdump/kdump.c
usr.bin/ktrace/ktrace.c
usr.bin/logger/logger.c
usr.bin/make/generate.c
usr.bin/sed/process.c
usr.bin/skey/skey.c
usr.bin/skeyinit/skeyinit.c
usr.bin/systat/main.c
usr.bin/tip/tip.c
usr.bin/unifdef/unifdef.c
usr.bin/vis/vis.c
usr.bin/vmstat/vmstat.c
usr.bin/xargs/xargs.c
usr.sbin/fdformat/fdformat.c
usr.sbin/ndp/ndp.c
usr.sbin/rbootd/bpf.c
usr.sbin/rip6query/rip6query.c
usr.sbin/rpc.lockd/lockd.c
usr.sbin/sa/main.c
usr.sbin/tcpdump/tcpdump.c