NetBSD/crypto/dist/heimdal/lib/roken
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
..
ChangeLog import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
Makefile.am import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
Makefile.in import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
acconfig.h import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
acinclude.m4 import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
base64-test.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
base64.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
base64.h import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
bswap.c import of heimdal 0.3f 2001-06-19 22:08:08 +00:00
chown.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
compile import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
concat.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
config.h.in import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
copyhostent.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
daemon.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
ecalloc.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
emalloc.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
environment.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
eread.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
erealloc.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
err.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
err.h eliminate redundant declarations. 2001-01-06 23:30:57 +00:00
err.hin import of heimdal 0.3e 2001-02-11 13:51:06 +00:00
errx.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
esetenv.c import of heimdal 0.3e 2001-02-11 13:51:06 +00:00
estrdup.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
ewrite.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
fchown.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
flock.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
fnmatch.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
fnmatch.h import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
fnmatch.hin import of heimdal 0.3e 2001-02-11 13:51:06 +00:00
freeaddrinfo.c import of heimdal 0.3f 2001-06-19 22:08:08 +00:00
freehostent.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
gai_strerror.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
get_default_username.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
get_window_size.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
getaddrinfo-test.c import of heimdal 0.3f 2001-06-19 22:08:08 +00:00
getaddrinfo.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
getaddrinfo_hostspec.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
getarg.3 import of heimdal 0.3e 2001-02-11 13:51:06 +00:00
getarg.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
getarg.h import of heimdal 0.3f 2001-06-19 22:08:08 +00:00
getcap.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
getcwd.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
getdtablesize.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
getegid.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
geteuid.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
getgid.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
gethostname.c
getifaddrs.c merge heimdal 0.4e 2001-09-17 12:32:33 +00:00
getipnodebyaddr.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
getipnodebyname.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
getnameinfo.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
getnameinfo_verified.c import of heimdal 0.3f 2001-06-19 22:08:08 +00:00
getopt.c
getprogname.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
gettimeofday.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
getuid.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
getusershell.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
glob.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
glob.h
glob.hin import of heimdal 0.3f 2001-06-19 22:08:08 +00:00
h_errno.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
hostent_find_fqdn.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
hstrerror.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
ifaddrs.hin import of heimdal 0.3e 2001-02-11 13:51:06 +00:00
inet_aton.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
inet_ntop.c import of heimdal 0.3f 2001-06-19 22:08:08 +00:00
inet_pton.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
initgroups.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
innetgr.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
install-sh import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
iruserok.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
issuid.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
k_getpwnam.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
k_getpwuid.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
lstat.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
memmove.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
mini_inetd.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
missing import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
mkinstalldirs import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
mkstemp.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
net_read.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
net_write.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
parse_bytes-test.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
parse_bytes.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
parse_bytes.h import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
parse_time.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
parse_time.h import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
parse_units.c import of heimdal 0.3f 2001-06-19 22:08:08 +00:00
parse_units.h import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
print_version.c import of heimdal 0.3f 2001-06-19 22:08:08 +00:00
putenv.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
rcmd.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
readv.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
recvmsg.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
resolve.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
resolve.h import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
resource.h
roken-common.h merge heimdal 0.4e 2001-09-17 12:32:33 +00:00
roken.awk import of heimdal 0.3f 2001-06-19 22:08:08 +00:00
roken.def
roken.dsp
roken.h.in import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
roken.mak
roken.rc
roken_gethostby.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
rtbl.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
rtbl.h import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
sendmsg.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
setegid.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
setenv.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
seteuid.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
setprogname.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
signal.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
simple_exec.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
snprintf-test.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
snprintf-test.h import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
snprintf.c va_{start,end} audit: 2001-09-24 13:22:25 +00:00
socket.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
strcasecmp.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
strcollect.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
strdup.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
strerror.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
strftime.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
strlcat.c Reduce diffs with 0.3e (mostly, complete the merge). 2001-04-07 21:29:20 +00:00
strlcpy.c Reduce diffs with 0.3e (mostly, complete the merge). 2001-04-07 21:29:20 +00:00
strlwr.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
strncasecmp.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
strndup.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
strnlen.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
strpftime-test.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
strptime.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
strsep.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
strsep_copy.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
strtok_r.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
strupr.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
swab.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
timeval.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
tm2time.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
unsetenv.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
unvis.c import of heimdal 0.3e 2001-02-11 13:51:06 +00:00
verify.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
verr.c import of heimdal 0.3e 2001-02-11 13:51:06 +00:00
verrx.c import of heimdal 0.3e 2001-02-11 13:51:06 +00:00
vis.c merge heimdal 0.4e 2001-09-17 12:32:33 +00:00
vis.hin import of heimdal 0.3e 2001-02-11 13:51:06 +00:00
vsyslog.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
vwarn.c import of heimdal 0.3e 2001-02-11 13:51:06 +00:00
vwarnx.c import of heimdal 0.3e 2001-02-11 13:51:06 +00:00
warn.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
warnerr.c import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
warnx.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
write_pid.c merge in conflicts after 0.3f import 2001-06-19 22:39:52 +00:00
writev.c import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
xdbm.h import of heimdal 0.4e 2001-09-17 12:24:30 +00:00