NetBSD/usr.bin
dholland d6986f611b Rerun valid_format() both before and after unescaping the format
string, in case the format string contains printf conversions
assembled from escape sequences.

A better approach might be to adjust the unescape logic to avoid
generating printf conversions (e.g. convert \x25 to %% instead of %)
but that's somewhat problematic and it's not really worth taking the
trouble.

Running valid_format() only after unescaping would also be somewhat
tidier but makes printing the invalid format string problematic,
because the unescape logic runs in place.

None of these cases are really worth worrying about in detail, but now
at least they don't result in SIGSEGV.

Related to PR 43355.
2010-05-27 08:40:19 +00:00
..
apply Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
apropos Add support for -S and -s option, which limit the results to a specific 2009-05-08 12:48:43 +00:00
asa Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
at Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
audio Reorder sections to canonical order. 2010-05-15 00:08:31 +00:00
awk Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
banner Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
basename Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
bdes Use .%U instead of .%O for URLs. 2010-01-15 19:39:10 +00:00
biff Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
bthset update to use the new service discovery API 2009-05-12 18:39:55 +00:00
btkey accept uppercase hex digits when parsing a provided key 2009-12-10 18:57:31 +00:00
btpin add a -P flag to attempt immediate pairing 2009-05-16 07:18:42 +00:00
bzip2
bzip2recover
cal Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
calendar Reorder sections to canonical order. 2010-05-14 16:45:41 +00:00
cap_mkdb Fix trailing whitespace 2010-05-14 01:53:28 +00:00
cdplay Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
checknr Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
chflags Missing -width for .Bl -tag 2010-05-14 16:48:02 +00:00
chpass Fix WARNS=4 (-Wcast-qual -Wsign-compare -Wshadow) issues. 2009-04-11 12:10:02 +00:00
cksum Use plain \* not \\*. Fix trailing whitespace 2010-05-14 01:57:21 +00:00
cmp Compare size_t vs off_t by casting both to uintmax_t 2009-04-18 06:24:05 +00:00
col Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
colcrt Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
colrm Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
column Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
comm Don't include newlines when comparing to prevent errors when lines have 2009-11-28 03:56:38 +00:00
compile_et Typo: s/ a a/ as a/ 2010-04-05 21:33:09 +00:00
compress Fix -Wcast-qual and -Wsign-compare issues 2009-04-11 12:24:37 +00:00
config Prefer a real device for pseudoroot and only create a fake device 2010-05-02 15:35:00 +00:00
crontab
crunch pass LDSTATIC to recursive makes. 2010-04-24 17:58:40 +00:00
csplit Rename internal getline() function to get_line() so it does 2009-07-13 19:05:39 +00:00
ctags Reorder to canonical order. 2010-05-14 16:48:36 +00:00
cut Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
db Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
deroff Remove superfluous parenthesis in #ifdef DEBUG. 2009-08-07 14:05:58 +00:00
dirname Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
du Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
eject matt wants the ping timeout to be 1sec 2010-02-26 22:44:17 +00:00
elf2aout build elf2aout and fdformat on macppc64 (for now, it's a lot easier than 2010-03-30 07:26:23 +00:00
elf2ecoff Use %zu for size_t, not %zd. 2009-12-19 10:27:13 +00:00
env
error \\ -> \e 2010-04-05 21:16:21 +00:00
expand Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
extattr Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
false
fdformat build elf2aout and fdformat on macppc64 (for now, it's a lot easier than 2010-03-30 07:26:23 +00:00
fgen Some bugfixes and enhancements. Support for case .. of and fix calculation 2010-02-08 20:14:55 +00:00
find Clarify (hopefully) the description of -remove. 2009-11-06 21:03:12 +00:00
finger Fix WARNS=4 issues (-Wshadow, -Wcast-qual, -Wsign-compare) 2009-04-12 06:18:54 +00:00
fmt Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
fold Fix section order. Use .Ex -std 2010-05-14 16:54:48 +00:00
fpr Fix markup. 2009-03-15 15:18:04 +00:00
from
fsplit Rename internal getline() function to get_line() so it does 2009-07-13 19:05:39 +00:00
fstat move _KMEMUSER higher! 2009-07-13 21:44:32 +00:00
ftp ftp 20100305: fix http date parsing 2010-03-05 07:45:40 +00:00
gcore
genassym Split overly large paragraph. 2010-04-13 09:01:10 +00:00
gencat Rename internal getline() function to get_line() so it does 2009-07-13 19:05:39 +00:00
getconf Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
getent Sort SEE ALSO. New sentence, new line. Whitespace fix. 2010-02-04 09:48:35 +00:00
getopt punctuation 2010-01-24 20:13:28 +00:00
gprof
grep Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
gss Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
gzip Consistently use -- for all programs called. Drop some redundant flags 2010-04-14 20:30:28 +00:00
head Just ignore the errno of strtoimax, it doesn't provide much value. 2010-03-31 21:55:23 +00:00
hesinfo
hexdump DEL is 0x7F, not 0xFF. From FreeBSD via OpenBSD. 2010-02-27 10:45:23 +00:00
hxtool Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
iconv Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
id Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
indent Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare) 2009-04-12 11:09:49 +00:00
infocmp Reorder sections to canonical order. 2010-05-14 17:02:01 +00:00
innetgr
ipcrm Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
ipcs Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
join Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-12 11:18:21 +00:00
jot fix sign-compare issue 2009-04-12 11:19:18 +00:00
kdestroy Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
kdump convert -idirafter to -isystem, as recommended by cgd in PR 11843. 2010-03-22 01:29:29 +00:00
kgetcred Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
kinit Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
klist Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
krb5-config Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
ktrace Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
ktruss use .ORDER to avoid race 2009-12-14 05:23:39 +00:00
lam \\ -> \e 2010-04-05 21:16:21 +00:00
last Fix WARNS=4 issues (-Wshadow -Wcast-qual -Wsign-compare) 2009-04-12 13:07:21 +00:00
lastcomm fix sign-compare issue 2009-04-12 13:08:31 +00:00
ldd Sync against new ld.elf_so 2010-02-27 11:17:05 +00:00
leave
less Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
lex Conditionalize the yyinput/input() function definition the same way 2009-12-15 22:46:04 +00:00
locale Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
locate Reorder sections to canonical order. 2010-05-14 17:06:40 +00:00
lock
logger RETURN VALUES -> EXIT STATUS. 2010-05-14 16:58:32 +00:00
login don't repeat the word login twice (syslog prepends the program name login:) 2009-12-29 20:15:15 +00:00
logname
look Reorder sections to canonical order. 2010-05-14 17:06:40 +00:00
lorder
m4 Improve/fix/deuglify markup. 2010-05-14 17:14:28 +00:00
machine
mail Explicitly quote |. Don't use .%T outside the scope of .Rs/.Re. 2010-05-14 16:23:42 +00:00
make Don't missinterpret targets that start with .info 2010-05-24 21:04:49 +00:00
man - centralize the snprintf code. 2010-05-23 22:04:36 +00:00
menuc option noinput 2009-10-29 14:35:25 +00:00
mesg Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
midiplay fix wording: 2010-01-16 08:50:29 +00:00
mixerctl Resort sections to canonical order 2010-05-14 17:20:06 +00:00
mk_cmds Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
mkcsmapper option noinput nounput 2009-10-29 14:37:16 +00:00
mkdep fix empty suffix case. 2010-05-26 18:07:34 +00:00
mkesdb use %option instead of #define YY_NO_... 2009-10-29 14:49:02 +00:00
mkfifo
mklocale rework bulid breakage problem on linux. 2010-05-22 18:15:21 +00:00
mkstr ANSIfy, sprinkle "const" in some obvious cases 2009-11-17 18:31:12 +00:00
mktemp Fix typo. 2009-08-15 20:44:56 +00:00
moduli Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
msgc Simplify markup. 2010-05-14 17:24:38 +00:00
msgs Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
nbperf Add a check for duplicate keys. The check is run once and quadratic in 2010-03-03 01:55:04 +00:00
nbsvtool Fix markup 2009-03-11 13:54:05 +00:00
netgroup
netstat no need to forward declare struct uio and proc before including 2010-04-22 14:37:06 +00:00
newgrp Resort sections to canonical order. 2010-05-14 17:28:23 +00:00
newsyslog Reset ziptype on each line. Failure to do this caused any log file to 2009-08-21 08:20:19 +00:00
nfsstat Remove no longer used -DNFS. 2010-03-05 19:53:37 +00:00
nice
nl Fix -Wextra and -Wsign-compare issues 2009-04-12 23:34:11 +00:00
nohup Resort sections to canonical order. 2010-05-14 17:28:23 +00:00
nvi When using -lcurses, you also need -lterminfo. 2010-02-06 23:45:24 +00:00
pagesize
passwd Do not call pam_end with an invalid handle if pam_start failed. 2010-03-09 16:14:08 +00:00
paste Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
patch Plug a memory leak. From Igor Zinovik. 2010-01-10 01:10:16 +00:00
pathchk Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
pkill Fix sign-compare issues 2009-04-13 00:12:16 +00:00
pmap Explicitly close quote. 2010-05-14 17:31:26 +00:00
pmc Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
pr Fix -Wcast-qual issues 2009-04-13 00:37:05 +00:00
printenv de-__P() and ANSIfy; no functional change 2009-07-25 08:20:24 +00:00
printf \\*(Pm -> \*(Pm 2010-04-05 21:24:14 +00:00
progress
pwhash Reflow to < 80 chars. 2009-10-16 08:09:12 +00:00
qsubst Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
quota Fix -Wcast-qual and -Wshadow issues 2009-04-13 04:16:38 +00:00
radioctl Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-13 04:24:29 +00:00
rdist Nesting displays is not valid groff syntax. 2009-08-19 14:54:35 +00:00
renice Fix markup. 2009-04-08 13:20:23 +00:00
rev Apply some ANSI and KNF. 2009-07-21 01:25:14 +00:00
revoke Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
rfcomm_sppd Add a new feature, allow to specify an alternative PSM value for the 2009-09-24 18:30:37 +00:00
rlogin Fix sign-compare issues 2009-04-13 04:37:53 +00:00
rpcgen Add support for hyper and quad keywords. (See Sun ONC+ Developer's Guide 2009-05-06 14:30:51 +00:00
rpcinfo ANSIfy, sprinkle "const" in some obvious cases 2009-11-17 18:31:12 +00:00
rs Rename internal getline() function to get_line() so it does 2009-07-13 19:05:39 +00:00
rsh Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
rup Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
ruptime Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-13 07:10:25 +00:00
rusers
rwall Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
rwho fix -Wsign-compare issue 2009-04-13 07:11:37 +00:00
script use system to parse args 2009-10-17 22:36:23 +00:00
sdiff Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
sdpquery Fix typo (specifed -> specified). 2010-02-18 14:00:39 +00:00
sed Merge the following revisions from OpenBSD to let sed(1) handle 2010-02-19 16:35:27 +00:00
seq Rerun valid_format() both before and after unescaping the format 2010-05-27 08:40:19 +00:00
shar
shlock Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
showmount fix -Wcast-qual issue 2009-04-13 07:30:49 +00:00
shuffle fix sign-compare issue 2009-04-13 07:31:36 +00:00
skey
skeyinfo ANSIfy and sort includes 2009-09-05 06:15:24 +00:00
skeyinit Fix -Wsign-compare issue 2009-04-14 09:53:08 +00:00
sockstat Fix WARNS=4 issues (-Wshadow -Wsign-compare) 2009-04-13 10:56:56 +00:00
soelim Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
sort Don't recognize "+3" after -- or after the first non-option argument. 2010-05-27 05:52:29 +00:00
spell Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
split Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
stat \\ -> \e 2010-04-05 21:25:01 +00:00
string2key Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
su Sort options. 2009-05-18 09:37:44 +00:00
systat Add per process cache values to the total name translations count. 2010-04-30 16:21:05 +00:00
tabs Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
tail Fix WARNS=4 issues (-Wcast-qual -Wshadow -Wsign-compare) 2009-04-13 23:33:25 +00:00
talk When using -lcurses, you also need -lterminfo. 2010-02-06 23:45:24 +00:00
tcopy Fix -Wcast-qual issue 2009-04-13 23:44:49 +00:00
tee Fix -Wcast-qual issues 2009-04-13 23:45:50 +00:00
telnet Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
tftp Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
tic libterminfo can now compile a single terminfo description which allows 2010-02-22 23:05:39 +00:00
time and, erm, bump date too. 2010-05-16 07:40:53 +00:00
tip fix language 2010-01-28 14:12:11 +00:00
touch remove read-write code because it's dangerous. 2009-04-28 02:47:12 +00:00
tput Fix trailing whitespace 2010-05-14 01:58:07 +00:00
tr Do not use \." for comments, always use .\". Discussed with uwe@. 2009-11-12 00:43:52 +00:00
true
tset We need to cap reset_file/init_file. 2010-02-10 10:34:59 +00:00
tsort Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
tty
ul Userland now builds and uses terminfo instead of termcap. 2010-02-03 15:34:37 +00:00
uname
unexpand Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
unifdef fix language 2010-01-28 14:12:11 +00:00
uniq Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
units Appease -Wcast-qual with a liberal sprinkling of const. 2009-04-14 05:55:12 +00:00
unvis Add RFC 2045 MIME Quoted-Printable support. 2009-02-10 23:06:31 +00:00
unzip Kill a left-over break from the for-loop that vanished in 1.13. 2010-05-10 15:45:22 +00:00
usbhidaction Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
usbhidctl fix sign-compare issues 2009-04-14 06:14:10 +00:00
users
utoppya fix sign-compare issues 2009-04-14 06:14:10 +00:00
uudecode Fix -Wcast-qual issue 2009-04-14 06:16:59 +00:00
uuencode Specify width for tag list. 2009-03-10 19:54:43 +00:00
uuidgen Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
vacation s/the the/the/ 2009-12-08 09:46:01 +00:00
verify_krb5_conf Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
vgrind Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
vi/docs
vis Fix typo in usage. 2009-02-11 06:42:31 +00:00
vmstat Follow christos' suggestions, and make ks_active a u_short, and 2010-04-05 08:03:41 +00:00
vndcompress Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
w Fix -Wcast-qual issue 2009-04-14 07:41:36 +00:00
wall Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-14 07:54:51 +00:00
wc Report the number of characters, not the number of bytes in the 2010-02-19 11:15:23 +00:00
what
whatis
whereis No trailing whitespace 2010-04-05 16:13:58 +00:00
who PR/41313: Chris Spiegel: getutentries() in src/usr.bin/who/utmpentry.c thinks 2009-05-01 14:26:10 +00:00
whois Punctuation. 2009-05-04 21:13:58 +00:00
window \\ -> \e 2010-04-23 22:04:37 +00:00
write fix sign-compare issue 2009-04-14 07:59:17 +00:00
xargs Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
xinstall Reorder sections to canonical order. Use .Ex -std. 2010-05-14 17:03:19 +00:00
xlint for mips64*, use mips64 subdir, otherwise use $MACHINE_ARCH if exists, 2010-03-22 05:12:24 +00:00
xstr ANSIfy, sprinkle "const" in some obvious cases 2009-11-17 18:31:12 +00:00
yacc Fix WARNS=4 issues (-Wshadow -Wcast-qual) 2009-04-14 09:41:30 +00:00
yes Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00
ypcat Remove superfluous quotes. 2009-06-21 15:05:59 +00:00
ypmatch Sync usage with man page. 2009-06-21 14:59:53 +00:00
ypwhich Sync usage with man page. 2009-06-21 15:04:56 +00:00
Makefile unhook old cron, hook new one. 2010-05-07 17:35:31 +00:00
Makefile.inc Enable WARNS=4 by default for usr.bin, except for: 2009-04-14 22:15:16 +00:00