NetBSD/bin/sh
wiz 4c99916337 va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
..
bltin More and more .Os cleanups. .Os is defined in the tmac.doc-common file, 1999-03-22 18:25:43 +00:00
funcs Merge in my changes from vangogh, and fix the x=`false`; echo $? == 0 1995-05-11 21:28:33 +00:00
Makefile Use ${MACHINE_CPU} == "arm" to test for ARMishness. 2001-04-18 17:35:36 +00:00
TOUR PR/2808: tokens.def -> tokens.h 1996-10-16 14:24:56 +00:00
alias.c Fix dangling else warning. 1998-05-20 00:27:56 +00:00
alias.h Merge in my changes from vangogh, and fix the x=`false`; echo $? == 0 1995-05-11 21:28:33 +00:00
arith.y remove redundant declaration of yyparse, and move code to the bottom of 2001-02-04 19:51:43 +00:00
arith_lex.l PR/5577: Craig M. Chase: sh does not build with PARALLEL set. 1999-02-05 07:52:51 +00:00
builtins.def PR/9847: Geoff C. Wing: Make test(1) a builtin. 2000-04-09 23:27:03 +00:00
cd.c compile with WARNS = 2 1999-07-09 03:05:49 +00:00
cd.h Fix compiler warnings. 1997-07-04 21:01:48 +00:00
error.c include <stdlib.h>, <string.h>, or whatever as appropriate to shut up 2000-07-03 03:26:17 +00:00
error.h remove redundant declarations and nexted externs. 2001-02-04 19:52:06 +00:00
eval.c remove redundant declarations and nexted externs. 2001-02-04 19:52:06 +00:00
eval.h Fix bin/9184, bin/9194, bin/9265, bin/9266 2000-01-27 23:39:38 +00:00
exec.c remove redundant declarations and nexted externs. 2001-02-04 19:52:06 +00:00
exec.h Back out previous vfork changes. 2000-05-22 10:18:46 +00:00
expand.c make sure we do not truncate arith expresssion > 10 digits. 2001-09-19 06:38:19 +00:00
expand.h compile with WARNS = 2 1999-07-09 03:05:49 +00:00
histedit.c remove redundant declarations and nexted externs. 2001-02-04 19:52:06 +00:00
init.h Merge in my changes from vangogh, and fix the x=`false`; echo $? == 0 1995-05-11 21:28:33 +00:00
input.c remove redundant declarations and nexted externs. 2001-02-04 19:52:06 +00:00
input.h Back out previous vfork changes. 2000-05-22 10:18:46 +00:00
jobs.c Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
jobs.h Back out previous vfork changes. 2000-05-22 10:18:46 +00:00
machdep.h Merge in my changes from vangogh, and fix the x=`false`; echo $? == 0 1995-05-11 21:28:33 +00:00
mail.c include <stdlib.h>, <string.h>, or whatever as appropriate to shut up 2000-07-03 03:26:17 +00:00
mail.h Merge in my changes from vangogh, and fix the x=`false`; echo $? == 0 1995-05-11 21:28:33 +00:00
main.c Fix various misspellings of compatible/compatibility. 2001-06-11 01:50:48 +00:00
main.h Merge in my changes from vangogh, and fix the x=`false`; echo $? == 0 1995-05-11 21:28:33 +00:00
memalloc.c PR/11283: Hubert Feyrer: random memory corruption executing commands: 2000-11-01 19:56:01 +00:00
memalloc.h PR/11283: Hubert Feyrer: random memory corruption executing commands: 2000-11-01 19:56:01 +00:00
miscbltin.c remove redundant declarations and nexted externs. 2001-02-04 19:52:06 +00:00
miscbltin.h Fix compiler warnings. 1997-07-04 21:01:48 +00:00
mkbuiltins compile with WARNS = 2 1999-07-09 03:05:49 +00:00
mkinit.c host program portability: don't use <sys/cdefs.h>, __COPYRIGHT(), 2000-07-18 19:13:20 +00:00
mknodes.c host program portability: set infp to stdin at runtime, since apparently 2000-07-27 04:06:49 +00:00
mksyntax.c host program portability: don't use <sys/cdefs.h>, __COPYRIGHT(), 2000-07-18 19:13:20 +00:00
mktokens compile with WARNS = 2 1999-07-09 03:05:49 +00:00
myhistedit.h compile with WARNS = 2 1999-07-09 03:05:49 +00:00
mystring.c compile with WARNS = 2 1999-07-09 03:05:49 +00:00
mystring.h Merge in my changes from vangogh, and fix the x=`false`; echo $? == 0 1995-05-11 21:28:33 +00:00
nodes.c.pat Pointer arithmetic on void * is illegal but gcc does not care. 1997-04-11 23:03:08 +00:00
nodetypes PR/4966: Joel Reicher: Implement <> redirections which are documented in 1999-02-04 16:17:39 +00:00
options.c Fix command name in error message for 'sh nonexistingfile'. 2001-02-26 13:06:43 +00:00
options.h remove redundant declarations and nexted externs. 2001-02-04 19:52:06 +00:00
output.c va_{start,end} audit: 2001-09-24 13:22:25 +00:00
output.h - Add gcc attributes to printf like functions 1998-01-31 12:37:55 +00:00
parser.c PR/12533: Koji Mori: eval gets misparsed when it has a trailing semi-colon. 2001-04-03 15:00:11 +00:00
parser.h un-__P functions declared in parser.h. host programs include parser.h, 2000-07-27 04:09:27 +00:00
redir.c Back out previous vfork changes. 2000-05-22 10:18:46 +00:00
redir.h Back out previous vfork changes. 2000-05-22 10:18:46 +00:00
sh.1 Don't xref set(1) and case(1), since they are builtins and we don't 2001-04-03 10:56:03 +00:00
shell.h Back out previous vfork changes. 2000-05-22 10:18:46 +00:00
show.c Sprinkle some `const's in DEBUG bracketed code. 1999-10-08 21:10:44 +00:00
show.h Sprinkle some `const's in DEBUG bracketed code. 1999-10-08 21:10:44 +00:00
trap.c Extended functionality of the trap builtin, which now closely follows 2001-03-18 04:04:23 +00:00
trap.h Back out previous vfork changes. 2000-05-22 10:18:46 +00:00
var.c remove redundant declarations and nexted externs. 2001-02-04 19:52:06 +00:00
var.h Back out previous vfork changes. 2000-05-22 10:18:46 +00:00