freebsd-nq/usr.bin
Attilio Rao 48f6dd8a8c Use a safety belt for cases where corrupted narg can be passed to the
ktrsyscall(). print_number() does decrement the number of arguments,
leading to infinite loops for negative values.

Reported by:	Patrick Lamaiziere <patpr at davenulle dot org>,
		Jonathan Pascal <jkpyvxmzsa at mailinator dot com>
Submitted by:	jh
PR:		bin/120055, kern/119564
MFC:		1 week
2009-11-07 21:46:34 +00:00
..
alias
apply
ar Act like ranlib if our name ends in ranlib. In particular, 2009-03-20 17:11:45 +00:00
asa
at
atm
awk
banner
basename Alow dirname(1) to accept multiple arguments in the same way that 2009-02-02 11:19:56 +00:00
biff
bluetooth Clenup code a bit and do not call fork(2) before dameon(3) where not needed. 2009-02-04 22:04:06 +00:00
brandelf
bsdiff Add notes pointing out that bsdiff does not store file hashes and 2009-10-30 11:13:00 +00:00
bzip2
bzip2recover
c89
c99
calendar Belatedly add my calendar entry. 2009-10-05 19:29:49 +00:00
cap_mkdb
catman Restore the check against running as root that I accidentally removed in 2009-06-20 18:24:29 +00:00
chat
checknr
chkey Rename all symbols in libmp(3) to mp_*, just like Solaris. 2009-02-26 21:43:15 +00:00
chpass Make the chpass Makefile honour NO_FSCHG. 2009-06-15 21:05:00 +00:00
cksum
cmp
col
colcrt
colldef
colrm
column
comm
compile_et
compress
cpio This addresses some issues with my earlier -R fix that 2009-07-06 02:02:45 +00:00
cpuset
csplit
csup
ctags
cut Fix punctuation. 2009-04-01 08:33:54 +00:00
dig Add support for the build options that are currently in the port: 2009-06-01 21:58:59 +00:00
dirname Alow dirname(1) to accept multiple arguments in the same way that 2009-02-02 11:19:56 +00:00
du Report the next directory being scanned when a ^T is pressed (or any 2009-04-30 01:24:53 +00:00
ee Remove single occurance of HAS_CTYPE ifdef, ctype functions 2009-09-04 07:44:27 +00:00
elf2aout
elfdump
enigma
env
expand
false
fetch
file Merge vendor/file/dist@191739, bringing FILE 5.00 to 8-CURRENT. 2009-05-04 00:37:44 +00:00
file2c
find Update find(1) man page for -L/-delete interaction. 2009-09-20 16:47:56 +00:00
finger
fmt
fold
from
fstat fstat: fix fsid comparison when executed on systems with 64-bit long 2009-08-20 10:57:14 +00:00
fsync
ftp
gcore Use %zu for size_t, not %zd. 2009-09-23 15:32:59 +00:00
gencat
getconf
getent
getopt
gprof
gzip Correct a stack underflow in gzip: 2009-07-31 08:37:27 +00:00
head
hesinfo
hexdump Use strlcpy() instead of explicitly set \0 on the tail of the array. 2009-06-23 23:32:24 +00:00
host
id In preparation for raising NGROUPS and NGROUPS_MAX, change base 2009-06-19 15:58:24 +00:00
indent
ipcrm
ipcs Change the ABI of some of the structures used by the SYSV IPC API: 2009-06-24 21:10:52 +00:00
join
jot Fix some uninitialise variables. 2009-07-08 10:16:16 +00:00
kdump Use a safety belt for cases where corrupted narg can be passed to the 2009-11-07 21:46:34 +00:00
keylogin
keylogout K&R -> ANSI 2009-06-23 23:17:04 +00:00
killall Add libjail, a (somewhat) simpler interface to the jail_set and jail_get 2009-06-24 18:18:35 +00:00
ktrace Add a new type of KTRACE record for sysctl(3) invocations. It uses the 2009-03-11 21:48:36 +00:00
ktrdump Remove unnecessary opt* definations. 2009-02-21 03:53:06 +00:00
lam
last
lastcomm
ldd
leave Static'ify signal handler which is not called from outside. 2009-11-03 09:25:08 +00:00
less Update less to v436. This is considered as a bugfix release from vendor. 2009-07-29 09:20:32 +00:00
lessecho
lesskey
lex
limits Usermode portion of the support for swap allocation accounting: 2009-06-23 20:57:27 +00:00
locale Add the comment "(FreeBSD only)" to the altmonth_x keywords 2009-10-07 21:14:45 +00:00
locate Move the check to ensure the locate database has the minimum required size 2009-07-24 13:40:25 +00:00
lock
lockf
logger When reading input from a file or device (via -f option) set the 2009-10-30 21:54:53 +00:00
login Pass int arguments to auditon(2)'s A_GETCOND API rather than long 2009-04-19 23:34:22 +00:00
logins
logname
look Don't try to mmap the contents of empty files. This behaviour was harmless 2009-08-26 03:30:06 +00:00
lorder
lsvfs
m4
mail
make Reset UPTODATE gnodes after remaking makefiles when make 2009-10-18 11:28:31 +00:00
makewhatis %.s expects an int as the length specifier, so cast properly. 2009-06-23 23:37:25 +00:00
mesg
minigzip
ministat Fix some warns - mainly signedness and unused variables. 2009-03-17 19:37:47 +00:00
mkdep
mkfifo
mklocale Make mklocale work again, now that fwrite()'s return codes are different. 2009-07-14 09:19:33 +00:00
mkstr
mktemp
mkuzip
msgs
mt
nc
ncal Since the width is always 2, it is enough to put just one 2009-06-18 16:40:00 +00:00
ncplist
ncplogin
netstat Print routing statistics as unsigned short rather than unsigned int, 2009-10-15 10:31:24 +00:00
newgrp In preparation for raising NGROUPS and NGROUPS_MAX, change base 2009-06-19 15:58:24 +00:00
newkey Fix compilation of newkey(8) with WITHOUT_NIS=yes. 2009-02-28 16:16:37 +00:00
nfsstat Don't use sys/nfs/rpcv2.h - it is part of the old kernel RPC implementation 2009-06-24 18:42:21 +00:00
nice
nl Use getline() instead of fgets(). This enables nl(1) to handle 2009-02-28 15:53:36 +00:00
nohup
nslookup
nsupdate
objformat
opieinfo
opiekey
opiepasswd
pagesize
passwd
paste
pathchk
perror Use prototype for usage(). This makes perror(1) WARNS=6 clean. 2009-05-28 21:37:40 +00:00
pr
printenv Define extern **environ in global scope instead of in function. 2009-02-21 03:50:25 +00:00
printf
procstat Update procstat(1) for the fact that devfs paths are no longer unsupported. 2009-08-12 10:41:37 +00:00
quota In preparation for raising NGROUPS and NGROUPS_MAX, change base 2009-06-19 15:58:24 +00:00
renice
rev
revoke Add revoke(1). 2009-06-15 21:52:27 +00:00
rlogin
rpcgen
rpcinfo
rs
rsh
rup
ruptime
rusers
rwall
rwho
script
sed IEEE Std 1003.1, 2004 Edition states: 2009-09-20 15:47:31 +00:00
setchannel
shar
showmount Don't use sys/nfs/rpcv2.h - it is part of the old kernel RPC implementation 2009-06-24 18:42:21 +00:00
smbutil
sockstat Add manual page links to advertise procstat(1) a little better. 2009-07-09 16:40:00 +00:00
split When "-b" is specified, one could easily create "smaller" files 2009-01-24 05:32:11 +00:00
stat Let stat(1) use fdevname(3). 2009-02-11 20:36:17 +00:00
su Fixup the parameters to audit_submit(3) the order is errno then return 2009-04-04 20:58:18 +00:00
systat - Catch SIGHUP to perform cleanup before exiting. 2009-10-11 12:32:25 +00:00
tabs
tail Use our canonical .Dd format. 2009-11-02 12:35:38 +00:00
talk Utilize strlcpy(). 2009-02-21 03:38:46 +00:00
tar Make sure to use up-to-date libarchive header files from source tree when 2009-09-07 06:37:44 +00:00
tcopy
tee
telnet
tftp
time
tip
top Update top and systat for vfs.bufcache now being a long rather than an int. 2009-03-10 15:25:19 +00:00
touch - If lstat()/stat() fails with an error other than ENOENT, don't ignore 2009-10-16 20:52:45 +00:00
tput
tr
true
truncate Initialize 'sz' as 0. 2009-02-21 03:42:31 +00:00
truss Correct off-by-one issue in truss(1) which happens when system call number 2009-05-28 00:38:24 +00:00
tset
tsort
tty
ul
uname
unexpand
unifdef
uniq
units
unvis
unzip Add C/c/f/p/v switches plus a bunch of minor fixes and cleanups. 2009-09-08 15:55:13 +00:00
usbhidaction Build fixups for the new USB stack. 2009-02-23 18:36:54 +00:00
usbhidctl Use getprogname() instead of referencing __progname. 2009-06-23 23:16:00 +00:00
users
uudecode
uuencode
vacation
vgrind
vi
vis
vmstat When fetching sum stats (vmstat -s) from a crash dump, fetch per-CPU counts 2009-10-29 17:34:02 +00:00
w Constify format string pointer, otherwise this would trigger warning when 2009-09-08 01:11:23 +00:00
wall
wc
what
whereis
which
who
whois The 6bone was decommissioned on 6/6/06, so remove references to it. 2009-10-03 02:37:21 +00:00
write
xargs
xinstall
xlint
xstr
yacc
yes
ypcat Support shadow.byname and shadow.byuid maps, protecting them by 2009-06-25 16:15:39 +00:00
ypmatch Support shadow.byname and shadow.byuid maps, protecting them by 2009-06-25 16:15:39 +00:00
ypwhich Support shadow.byname and shadow.byuid maps, protecting them by 2009-06-25 16:15:39 +00:00
Makefile Add revoke(1). 2009-06-15 21:52:27 +00:00
Makefile.inc