4c99916337
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. |
||
---|---|---|
.. | ||
Makefile | ||
Makefile.inc | ||
alloc.c | ||
arp.c | ||
bcmp.c | ||
bcopy.c | ||
bootp.c | ||
bootp.h | ||
bootparam.c | ||
bootparam.h | ||
bzero.c | ||
cd9660.c | ||
cd9660.h | ||
checkpasswd.c | ||
close.c | ||
closeall.c | ||
cread.c | ||
dev.c | ||
dev_net.c | ||
dev_net.h | ||
disklabel.c | ||
dkcksum.c | ||
dosfs.c | ||
dosfs.h | ||
errno.c | ||
ether.c | ||
exec.c | ||
exit.c | ||
fstat.c | ||
getfile.c | ||
gets.c | ||
globals.c | ||
in_cksum.c | ||
ioctl.c | ||
iodesc.h | ||
lfs.c | ||
lfs.h | ||
loadfile.c | ||
loadfile.h | ||
lseek.c | ||
memcmp.c | ||
memcpy.c | ||
memmove.c | ||
memset.c | ||
net.c | ||
net.h | ||
netif.c | ||
netif.h | ||
nfs.c | ||
nfs.h | ||
nfsv2.h | ||
nullfs.c | ||
open.c | ||
panic.c | ||
printf.c | ||
rarp.c | ||
read.c | ||
rpc.c | ||
rpc.h | ||
rpcv2.h | ||
saerrno.h | ||
saioctl.h | ||
snprintf.c | ||
sprintf.c | ||
stand.h | ||
stat.c | ||
strerror.c | ||
subr_prf.c | ||
tftp.c | ||
tftp.h | ||
twiddle.c | ||
udp.c | ||
ufs.c | ||
ufs.h | ||
ufs_ls.c | ||
ustarfs.c | ||
ustarfs.h | ||
vsprintf.c | ||
write.c |