freebsd-skq/usr.bin/systat
Warner Losh 448b84a0e4 o Use snprintf rather than sprintf
o Add more checks for buffer overflows
o Use snprintf rather than strcat/cpy and have better checks for max
  length exceeded.

Most of these changes are not exploitable buffer overruns, but it never
hurts to be safe.

Inspired by and obtained from: OpenBSD
1998-06-09 04:17:29 +00:00
..
cmds.c Importing Lite2 broke lookup() to return -1 for the nmatches == 0 case. 1997-07-06 04:13:20 +00:00
cmdtab.c Having done ICMP, UDP, and IP, could a TCP display be far behind? 1997-09-27 00:44:55 +00:00
disks.c o Use snprintf rather than sprintf 1998-06-09 04:17:29 +00:00
extern.h Having done ICMP, UDP, and IP, could a TCP display be far behind? 1997-09-27 00:44:55 +00:00
fetch.c Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
icmp.c Add a mode to display ICMP statistics. 1997-09-24 02:43:45 +00:00
iostat.c o Use snprintf rather than sprintf 1998-06-09 04:17:29 +00:00
ip.c Emboldened by the success of yesterday's ICMP statistics display, 1997-09-25 00:37:32 +00:00
keyboard.c BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00
main.c o Use snprintf rather than sprintf 1998-06-09 04:17:29 +00:00
Makefile Having done ICMP, UDP, and IP, could a TCP display be far behind? 1997-09-27 00:44:55 +00:00
mbufs.c o Use snprintf rather than sprintf 1998-06-09 04:17:29 +00:00
mode.c Add a mode to display ICMP statistics. 1997-09-24 02:43:45 +00:00
mode.h Add a mode to display ICMP statistics. 1997-09-24 02:43:45 +00:00
netcmds.c Use 'proto <tcp|udp|all>' to select the protocol to display 1997-12-04 03:44:46 +00:00
netstat.c o Use snprintf rather than sprintf 1998-06-09 04:17:29 +00:00
pigs.c o Use snprintf rather than sprintf 1998-06-09 04:17:29 +00:00
swap.c o Use snprintf rather than sprintf 1998-06-09 04:17:29 +00:00
systat.1 Use 'proto <tcp|udp|all>' to select the protocol to display 1997-12-04 03:44:46 +00:00
systat.h Add a mode to display ICMP statistics. 1997-09-24 02:43:45 +00:00
tcp.c Having done ICMP, UDP, and IP, could a TCP display be far behind? 1997-09-27 00:44:55 +00:00
vmstat.c o Use snprintf rather than sprintf 1998-06-09 04:17:29 +00:00