HardenedBSD/sys/netinet
Archie Cobbs 2127f26023 Examine all occurrences of sprintf(), strcat(), and str[n]cpy()
for possible buffer overflow problems. Replaced most sprintf()'s
with snprintf(); for others cases, added terminating NUL bytes where
appropriate, replaced constants like "16" with sizeof(), etc.

These changes include several bug fixes, but most changes are for
maintainability's sake. Any instance where it wasn't "immediately
obvious" that a buffer overflow could not occur was made safer.

Reviewed by:	Bruce Evans <bde@zeta.org.au>
Reviewed by:	Matthew Dillon <dillon@apollo.backplane.com>
Reviewed by:	Mike Spengler <mks@networkcs.com>
1998-12-04 22:54:57 +00:00
..
libalias Fix a couple of typos. 1998-11-19 18:07:28 +00:00
fil.c Staticize some more. 1998-11-26 18:54:52 +00:00
icmp_var.h Cleanup icmp_var.h, make icmp bandlim sysctl permanent but if ICMP_BANDLIM 1998-12-04 04:21:25 +00:00
if_atm.c
if_atm.h
if_ether.c Prevent modification of permanent ARP entries (PR kern/7649) 1998-09-17 00:04:21 +00:00
if_ether.h
if_fddi.h
igmp_var.h
igmp.c
igmp.h
in_cksum.c
in_hostcache.c
in_hostcache.h
in_pcb.c Fix the bind security fix introduced in rev 1.38 to work with multicast: 1998-09-17 18:42:16 +00:00
in_pcb.h
in_proto.c Yow! Completely change the way socket options are handled, eliminating 1998-08-23 03:07:17 +00:00
in_rmx.c
in_systm.h
in_var.h
in.c
in.h Yow! Completely change the way socket options are handled, eliminating 1998-08-23 03:07:17 +00:00
ip_auth.c Staticize some more. 1998-11-26 18:54:52 +00:00
ip_auth.h
ip_compat.h
ip_divert.c Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
ip_dummynet.c Bring in new files for dummynet support 1998-09-12 22:03:21 +00:00
ip_dummynet.h Bring in new files for dummynet support 1998-09-12 22:03:21 +00:00
ip_fil.c Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
ip_fil.h
ip_flow.c
ip_flow.h
ip_frag.c Staticize some more. 1998-11-26 18:54:52 +00:00
ip_frag.h
ip_ftp_pxy.c Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
ip_fw.c Staticize some more. 1998-11-26 18:54:52 +00:00
ip_fw.h Widen and change the layout of the IPFW structures flag element. 1998-09-02 19:14:01 +00:00
ip_icmp.c Cleanup icmp_var.h, make icmp bandlim sysctl permanent but if ICMP_BANDLIM 1998-12-04 04:21:25 +00:00
ip_icmp.h
ip_input.c Make the previous fix more portable. 1998-11-16 08:27:36 +00:00
ip_log.c Staticize some more. 1998-11-26 18:54:52 +00:00
ip_mroute.c Yow! Completely change the way socket options are handled, eliminating 1998-08-23 03:07:17 +00:00
ip_mroute.h Yow! Completely change the way socket options are handled, eliminating 1998-08-23 03:07:17 +00:00
ip_nat.c Staticize some more. 1998-11-26 18:54:52 +00:00
ip_nat.h
ip_output.c add #include <sys/kernel.h> where it's needed by MALLOC_DEFINE() 1998-11-10 09:16:29 +00:00
ip_proxy.c
ip_proxy.h
ip_state.c Staticize some more. 1998-11-26 18:54:52 +00:00
ip_state.h
ip_var.h Re-implement tcp and ip fragment reassembly to not store pointers in the 1998-08-24 07:47:39 +00:00
ip.h
ipl.h
mlf_ipl.c Staticize some more. 1998-11-26 18:54:52 +00:00
raw_ip.c Yow! Completely change the way socket options are handled, eliminating 1998-08-23 03:07:17 +00:00
tcp_debug.c
tcp_debug.h
tcp_fsm.h
tcp_input.c Reviewed by: freebsd-current 1998-12-03 20:23:21 +00:00
tcp_output.c
tcp_reass.c Reviewed by: freebsd-current 1998-12-03 20:23:21 +00:00
tcp_seq.h
tcp_subr.c The below patch helps to reduce the leakage of internal socket information 1998-11-15 21:35:09 +00:00
tcp_timer.c
tcp_timer.h
tcp_timewait.c The below patch helps to reduce the leakage of internal socket information 1998-11-15 21:35:09 +00:00
tcp_usrreq.c Yow! Completely change the way socket options are handled, eliminating 1998-08-23 03:07:17 +00:00
tcp_var.h Re-implement tcp and ip fragment reassembly to not store pointers in the 1998-08-24 07:47:39 +00:00
tcp.h
tcpip.h Dike out some obsolete defines which referenced ih_next and ih_prev from 1998-09-26 14:26:59 +00:00
udp_usrreq.c Reviewed by: freebsd-current 1998-12-03 20:23:21 +00:00
udp_var.h Remove stale references to ih_next and ih_prev. 1998-11-17 10:53:37 +00:00
udp.h