NetBSD/usr.bin
dsl 3db763ccc3 MCDelSet() contains an infinite loop!
I suspect it has never, ever, ever been asked to delete anything that exists.
Also neither it, nor MCDelMsg() below free() the set and msg structures.
Found by Coverty SID:54
2006-03-30 20:32:10 +00:00
..
apply Avoid casting an lvalue. 2005-05-08 19:53:57 +00:00
apropos Fix buffer overflow. We don't really care about trimming the filename here. 2005-09-17 19:18:31 +00:00
asa WARNS=3 2005-01-12 14:41:29 +00:00
at Kill NULL deref (CID: 871) 2006-03-21 21:59:56 +00:00
audio __inline__ -> inline 2005-12-24 21:44:28 +00:00
awk `!' needs an escape sequence (`\&'). New sentence, new line. 2005-08-17 00:58:19 +00:00
banner WARNS=3 2005-01-12 14:45:26 +00:00
basename Clean up by using basename(3) from libc. 2005-04-04 16:47:54 +00:00
bdes WARNS=3 2005-01-12 14:45:26 +00:00
biff Kill __P(), use ANSI function declarations. 2005-02-17 16:53:45 +00:00
bzip2 Add hook for SMALL 2004-06-06 06:39:43 +00:00
bzip2recover
cal appease gcc -Wuninitialized 2005-06-02 01:35:57 +00:00
calendar Correct logic error in wildcard handling, which was causing the 2006-03-24 23:30:08 +00:00
cap_mkdb Write the database file into a temporary file first, because otherwise if 2005-04-13 04:50:22 +00:00
cdplay New sentence, new line. Bump date for previous. 2006-01-12 21:00:58 +00:00
checknr This needs <err.h> for err() and errx() (hi wiz) 2005-03-30 18:01:32 +00:00
chflags Kill __P(), use ANSI function declarations. 2005-02-17 16:53:45 +00:00
chpass Mention pwhash(1) in a few places, 2005-09-05 03:37:14 +00:00
cksum sync usage(). 2006-01-15 16:50:05 +00:00
cmp Apply patch from PR bin/23836 cmp did not correctly parse skip arguments 2006-01-19 20:44:57 +00:00
col Kill __P(), use ANSI function declarations; WARNS=3. 2005-02-17 17:12:42 +00:00
colcrt Kill __P(), use ANSI function declarations, constify; WARNS=3. 2005-02-17 17:17:25 +00:00
colrm Kill __P(), use ANSI function declarations, constify; WARNS=3. 2005-02-17 17:17:25 +00:00
column warns=4 2006-03-16 16:49:07 +00:00
comm Kill __P(), use ANSI function declarations. 2005-02-17 17:31:28 +00:00
compile_et Only #define HAVE_IPV6 if ${USE_INET6} != "no". 2005-01-10 03:11:17 +00:00
compress Sync usage with man page. From Kouichirou Hiratsuka in PR 26197. 2004-07-09 12:14:37 +00:00
config Fix a broken conditional that confused coverity. It cannot happen, anyway. 2006-03-29 09:16:36 +00:00
crontab
crunch Don't use data in freed stack. 2006-01-13 16:36:25 +00:00
ctags Fix a couple of stack-smashing buffer overflows. 2005-07-20 17:22:45 +00:00
cut If fgetln() returns a buffer that isn't terminated by \n, free the temporary 2006-03-30 19:17:44 +00:00
db Allow the input [file] field separator to be a string and not just a 2005-06-20 02:53:38 +00:00
deroff We already pass WARNS=3. 2005-09-01 18:27:24 +00:00
dirname Clean up by using dirname(3) from libc. 2005-04-04 16:46:55 +00:00
du Kill __P(), use ANSI function declarations, constify; WARNS=3. 2005-02-17 17:35:47 +00:00
eject Add (unsigned char) cast to ctype functions 2004-10-30 17:17:35 +00:00
elf2aout s/the the/to the/. 2004-04-23 02:55:11 +00:00
elf2ecoff Overhaul how `build.sh tools' are used: 2003-10-27 00:12:41 +00:00
env de-__P, add ANSI prototypes, and a teeny bit of KNF. 2006-01-04 01:05:19 +00:00
error Spell the plural of suffix "suffixes", not "suffices". 2004-02-13 17:56:17 +00:00
expand - ansi 2005-03-09 02:02:07 +00:00
extattr appease gcc -Wuninitialized 2005-06-02 01:42:11 +00:00
false Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
fdformat PR/15897: Ryo HAYASAKA: fdformat does not know about terminal width. 2004-04-23 15:04:27 +00:00
fgen Add -d level to usage. From Kouichirou Hiratsuka in PR 26198. 2004-07-09 12:10:43 +00:00
file Force LANG=C before doing the shell glob to avoid collation issues on hosts 2004-06-16 01:33:35 +00:00
find Add a new primary '-exit n': 2006-02-20 16:31:02 +00:00
finger Ensure that malloc does not return NULL before copying the buffer. 2006-03-17 04:53:55 +00:00
fmt warns=4 2006-03-16 16:49:07 +00:00
fold safer use of realloc 2003-10-16 06:45:22 +00:00
fpr safer use of realloc 2003-10-16 06:45:22 +00:00
from isupper(x) can be true for x in [128..255], but since tolower(x) is required 2004-10-30 17:25:34 +00:00
fsplit No need to call isupper() before tolower() 2004-10-30 17:27:28 +00:00
fstat Adapt to some name changes in the tmpfs_node structure (to fix the build 2006-02-16 14:58:35 +00:00
ftp rename debug to ftp_debug. grr libssh. 2006-01-31 20:05:35 +00:00
gcore We have 2005 now. 2005-01-11 09:46:17 +00:00
genassym /sys is no longer available, change it to /usr/src/sys. 2005-08-18 01:09:02 +00:00
gencat MCDelSet() contains an infinite loop! 2006-03-30 20:32:10 +00:00
getconf pathconf(2), not (3). 2004-11-10 13:43:39 +00:00
getent It is "home_dir:shell", not "home_dir_shell". From YOMURA Masanori in private mail. 2005-09-11 23:16:15 +00:00
getopt
gprof Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
grep warnx appends a newline, so the string does not have to contain one. 2006-01-13 20:30:40 +00:00
gzip Remove unhandled H option from getopt() argument. 2005-12-13 10:02:04 +00:00
head Mention -c explicitly, use Nm, drop trailing space, 2004-05-04 23:44:21 +00:00
hesinfo Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
hexdump Simplify the way the end of a singly linked list is followed (for adding 2006-03-30 19:53:58 +00:00
iconv make the error message kindly if the last character is incompleted. 2005-04-25 13:57:34 +00:00
id PR/33054: Nicolas Joly: id(1) sometimes report a duplicate group when a user 2006-03-11 17:16:01 +00:00
indent When marking up "C", use .Tn consisntently. From YOMURA Masanori in private mail. 2005-09-11 23:17:34 +00:00
innetgr Sort options and add -v to usage. From Kouichirou Hiratsuka in PR 26219, 2004-07-10 16:12:29 +00:00
ipcrm Clean up getopt() usage, removing unnecessary warnx()'s. 2003-11-02 17:43:01 +00:00
ipcs Print a nice introductory line, per SUSv3 (and Posix?) 2005-02-21 04:32:55 +00:00
join de-__P, ANSIfy prototypes 2006-01-04 01:44:06 +00:00
jot Apply modified fix for PR bin/23763 2006-01-07 07:09:01 +00:00
kdestroy Remove some more kerberosIV references. 2006-03-23 21:48:18 +00:00
kdump Add PT_SYSCALL 2006-03-05 17:03:19 +00:00
kgetcred Only #define HAVE_IPV6 if ${USE_INET6} != "no". 2005-01-10 03:11:17 +00:00
kinit Remove some more kerberosIV references. 2006-03-23 21:48:18 +00:00
klist Remove some more kerberosIV references. 2006-03-23 21:48:18 +00:00
ktrace Add scheduler activations upcall data to the default list of trace 2006-02-07 06:39:47 +00:00
ktruss learn about v1 records. 2005-12-11 11:30:06 +00:00
lam Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
last Code indentation fix up. 2006-02-28 17:17:43 +00:00
lastcomm WARNS=3, ansi, knf 2005-03-28 23:33:22 +00:00
ldd add rcsid. 2005-12-27 11:29:30 +00:00
leave Fix Xref. End sentence with a dot. From YOMURA Masanori in private mail. 2005-09-11 23:18:42 +00:00
less PR/33123: Murray Armfield: standards compliance & glob.h 2006-03-26 18:11:22 +00:00
lex Fix some typos. 2006-02-25 02:28:55 +00:00
locale make "locale -a" read locale.alias file. 2006-02-16 19:19:49 +00:00
locate This patch removes one possible cause for a prolonged "out of disk" 2006-02-26 03:00:16 +00:00
lock Usage -> usage; add missing -n to usage. From Kouichirou Hiratsuka in PR 26221. 2004-07-13 11:55:02 +00:00
logger Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
login Remove unused variable 'salt' 2006-03-26 16:45:33 +00:00
logname Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
look Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
lorder Invoke "join" using POSIX syntax. Should fix a problem cross-building from 2005-01-04 18:09:33 +00:00
m4 s|expr|eval|g, to make the test portable 2005-10-06 17:38:09 +00:00
machine Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
mail PR/32978: Johan Veenhuizen: mail(1) creates record file with insecure umask 2006-03-03 15:07:00 +00:00
make - Change where variable substitution is done when processing traditional 2006-03-28 17:41:35 +00:00
man Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
menuc Allow menu entry option names to be code fragments that (should) call 2006-02-20 21:06:40 +00:00
mesg - Check stdin, stdout, and stderr for a tty. From Liam Foy for SUSv3 2005-07-30 16:14:39 +00:00
midiplay Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
mixerctl Two improvements, from a diff from jmc@openbsd. 2006-02-25 01:19:22 +00:00
mk_cmds Only #define HAVE_IPV6 if ${USE_INET6} != "no". 2005-01-10 03:11:17 +00:00
mkcsmapper change #include <sys/endian.h> => #include <machine/endian.h> so that 2006-02-09 22:03:15 +00:00
mkdep make this compile again. 2006-03-20 23:13:51 +00:00
mkesdb change #include <sys/endian.h> => #include <machine/endian.h> so that 2006-02-09 22:03:15 +00:00
mkfifo fix setmode error handling. 2005-10-01 20:23:54 +00:00
mklocale Some fixes from jmc@openbsd. 2004-01-24 17:03:26 +00:00
mkstr Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
mktemp New sentence, new line. Bump date for previous. 2006-01-12 21:54:06 +00:00
modstat Serial comma, remove unnecessary .Pp. 2006-03-24 00:14:23 +00:00
moduli Bring over changes I had committed to qsieve.6. 2006-01-24 19:17:19 +00:00
msgc If the user removed the default string (after we had put it into the buffer 2005-04-09 13:12:31 +00:00
msgs Fix obvious grammar mistake. Most of this file could do with a rewrite. 2004-09-03 14:24:50 +00:00
netgroup Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
netstat Bump date for previous. 2005-12-28 22:53:59 +00:00
newsyslog Reworded, because it previously made it sound like it only sent a 2005-04-21 17:33:31 +00:00
nfsstat in "summary" output (-w), 2004-08-26 13:29:05 +00:00
nice From Liam Foy: 2005-10-05 21:20:46 +00:00
nl
nohup Improve command description, from jmc, jaredy, and tom, all @openbsd. 2005-07-14 22:16:39 +00:00
openssl libcompat isn't needed any more here. 2006-02-25 12:00:24 +00:00
pagesize Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
passwd Get rid of more Kerberos 4 code. 2006-03-23 23:33:28 +00:00
paste Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
patch Sort options. Add -C to usage. 2005-03-25 23:55:02 +00:00
pathchk
pkill Wording, use more macros, xref grep(1). From jmc@openbsd. 2006-02-25 01:15:36 +00:00
pmap Add preliminary support for System V Boot File System. 2005-12-29 14:53:45 +00:00
pmc Improve argument error checking. 2005-06-02 02:14:58 +00:00
pr PR/32402: Jeffrey Bedard: pr filter dumps core with -s option specified, 2005-12-28 21:29:16 +00:00
printenv Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
printf Remember to consume input bytes when processing '\0nnn' for %b formats 2005-03-22 23:55:46 +00:00
progress Bump date for -e. 2006-01-12 21:52:01 +00:00
pwhash PR/31144: YOMURA Masanori: pwhash -S/-b never use optarg 2006-03-05 08:50:58 +00:00
qsubst Make fn arg 'unsigned char' to avoid passing 'char' to isalnum() 2004-11-01 21:36:11 +00:00
quota Replaced strncpy with strlcpy. Thanks to Peter Postma who 2004-09-07 13:20:39 +00:00
radioctl Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
rdist Coverity CID 2341, 2342: Plug memory leak. 2006-03-18 09:46:35 +00:00
renice - Exit with non-zero on errors (from Liam Foy) 2005-10-09 18:23:52 +00:00
rev Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
rlogin Remove some more old kerberos4 code. 2006-03-23 23:44:15 +00:00
rpcgen plug leak, coverity cid 98. 2006-03-20 17:03:08 +00:00
rpcinfo Cleanup use of 'host' when running 'rpcinfo -p'. 2005-06-02 02:46:16 +00:00
rs We have spell again, xref it. From YOMURA Masanori in private mail. 2005-09-11 23:22:03 +00:00
rsh Remove some more old kerberos4 code. Simplify usage. 2006-03-23 23:49:07 +00:00
rup From Liam Foy: 2005-08-07 16:01:45 +00:00
ruptime Rewrite a macro in order to eliminate an unused global variable (Liam Foy) 2005-09-12 16:16:23 +00:00
rusers Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
rwall - Minor logical restructure. Make sure we can create the client before 2005-08-09 23:41:38 +00:00
rwho The nusers variable is actually a size_t, so print with %zd, not %d. 2005-10-01 13:33:21 +00:00
script ANSIfy. de-P. 2006-03-29 15:40:49 +00:00
sed no trailing comma at end of enum. 2004-11-20 06:40:01 +00:00
seq Add missing DPADD for LIBMATH 2006-01-07 07:12:27 +00:00
shar UCB copyrights are supposed to be three clause these days 2005-06-30 02:36:35 +00:00
shlock * add [] to -p 2004-07-13 12:16:12 +00:00
showmount ANSIfy. de-P(). Syle nits. 2005-09-25 18:56:33 +00:00
shuffle Mike Cheponis noted that I didn't list the edition of Knuth that the 2004-12-01 00:03:45 +00:00
skey Mark up authors with .An. From YOMURA Masanori in private mail. 2005-09-11 23:25:32 +00:00
skeyinfo use bounded string op 2003-07-23 04:11:12 +00:00
skeyinit Initialize pw to placate -Wuninitialized for sh3. 2005-09-20 15:48:17 +00:00
sockstat Argument is address_family, not "address family". From YOMURA Masanori in private mail. 2005-09-11 23:26:35 +00:00
soelim Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
sort Init some variables the compiler is complaining about and mark w. XXGCC as it 2005-06-10 16:07:45 +00:00
spell lexi_co_graphical, with "co". From Igor Sobrado in PR 32231. 2005-12-04 09:14:58 +00:00
split Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
ssh Goodbye KerberosIV 2006-03-20 04:03:10 +00:00
stat Sort SEE ALSO. Drop trailing space. 2005-06-26 10:16:46 +00:00
string2key Remove some more kerberosIV references. 2006-03-23 21:48:18 +00:00
su Goodbye KerberosIV 2006-03-20 04:03:10 +00:00
systat free() intrnamebuf, intrname and intrloc on entry so we don't leak them 2006-03-20 20:36:38 +00:00
tail appease gcc -Wuninitialized on hp700. 2005-06-05 19:08:28 +00:00
talk Fix Coverity CID 1248, negative return from read() passed() to write() 2006-03-18 03:40:51 +00:00
tcopy Fix typo in macro name, from Yomura Masanori in PR 30616. 2005-06-28 07:55:12 +00:00
tee Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
telnet Goodbye KerberosIV 2006-03-20 04:03:10 +00:00
tftp Do not use %d for size_t! 2006-02-01 20:26:28 +00:00
time Sprinkle some KNF. 2005-10-27 01:43:48 +00:00
tip pull the following change from OpenBSD 2006-03-29 12:37:59 +00:00
tn3270 Support cross-building tn3270 from other OS' e.g. Solaris by hiding 2006-03-20 01:34:49 +00:00
top Don't malloc/free the swap pointer with each refresh! Do it only if the 2006-02-16 20:50:57 +00:00
touch Coverty 1212: Avoid close(-1). 2006-03-18 11:15:00 +00:00
tput Usage should exit with to according to posix (from Liam Foy). 2005-07-30 14:43:13 +00:00
tr As in other man pages, use .Dq for strings, and .Sq for single characters. 2004-03-24 11:38:27 +00:00
true Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
tset pass data to a function via arguments instead of via global variables. 2004-09-01 01:46:28 +00:00
tsort WARNS=3 2005-07-19 23:18:31 +00:00
tty Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
ul Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
uname Sort options alphabetically. 2005-03-27 18:41:22 +00:00
unexpand Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
unifdef Sort sections and other fixes. 2003-11-11 13:48:50 +00:00
uniq Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
units Use .Nm instead of the verbose program name. From YOMURA Masanori in private mail. 2005-09-11 23:28:55 +00:00
unvis Add -h to decode RFC 1808 URI style encoding (VIS_HTTPSTYLE). 2004-04-22 06:55:15 +00:00
usbhidaction By setting close-on-exec on the USB HID device descriptor, prevent passing an 2005-07-02 04:05:09 +00:00
usbhidctl bump size of some arrays 2005-02-09 22:14:13 +00:00
users Homogenize usage messages: make the 'usage' word all lowercase, as this seems 2004-01-05 23:23:32 +00:00
uudecode de-__P(), ansify, use {g,s}etprogname. 2005-06-29 20:34:48 +00:00
uuencode Add setprogname call. 2005-06-29 20:35:48 +00:00
uuidgen Sync usage with man page. 2004-09-13 23:44:19 +00:00
vacation New sentence, new line; punctuation fixes; 2004-08-25 12:47:57 +00:00
vgrind Add (unsigned char) cast to ctype functions 2004-11-04 07:38:43 +00:00
vi the preceeding loop does not terminate except in a condition where 2006-03-19 06:10:22 +00:00
vis Sync usage with man page; use getprogname(). From Kouichirou Hiratsuka 2004-07-23 13:44:17 +00:00
vmstat Split dkreadstats() into dkreadstats(), tkreadstats() and cpureadstats(). 2006-02-05 09:54:50 +00:00
vndcompress Fix typo ("program"). 2006-02-23 20:57:03 +00:00
w Don't print a warning about stale utmp{,x} entries if security.curtain 2005-09-15 00:58:49 +00:00
wall Call check_sender with NULL atime, meaning no strict checking. 2004-10-27 17:49:19 +00:00
wc de-__P, ANSIfy prototypes 2006-01-04 01:58:05 +00:00
what Move UCB-licensed code from 4-clause to 3-clause licence. 2003-08-07 11:13:06 +00:00
whatis PR bin/31068: whatis doesn't find /bin/[ by Zafer Aydogan. 2005-08-25 16:29:15 +00:00
whereis PR/25680: Christian Biere: whereis/which return invalid information with 2004-05-23 02:24:06 +00:00
who Another overrun forgotten in previous commit, also found by Coverity. 2006-03-17 20:44:28 +00:00
whois add more crap for denic. From OpenBSD. 2005-07-22 16:01:52 +00:00
window appease gcc -Wuninitialized 2005-06-02 04:34:57 +00:00
write PR/28474: Geoff C. Wing: write does some weird checking and can't handle ptyfs 2004-11-30 04:08:38 +00:00
xargs Query kernel for maximum argument size instead of using ARG_MAX. 2006-03-28 14:27:41 +00:00
xinstall fix setmode error handling. 2005-10-01 20:23:54 +00:00
xlint gcc says case is missing, coverity says case not reached. Appease both. 2006-03-22 16:16:59 +00:00
xstr Remove unneeded macro default arguments. From YOMURA Masanori in private mail. 2005-09-11 23:29:44 +00:00
yacc PR/21177: Christian Biere: ctype function issues. 2005-04-17 17:16:37 +00:00
yes Style fixes and WARNS. 2005-11-18 22:16:49 +00:00
ypcat Sort SEE ALSO. 2005-02-26 16:20:36 +00:00
ypmatch Sort SEE ALSO, remove superfluous quotes. 2005-02-26 16:21:44 +00:00
ypwhich Sort SEE ALSO. 2005-02-26 16:22:27 +00:00
Makefile moduli utils moved from games to usr.bin. 2006-01-24 19:01:45 +00:00
Makefile.inc