freebsd-nq/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 update ATM driver. (base version: midway.c 1.67 --> 1.68) 1998-07-29 05:35:16 +00:00
if_atm.h Forward declare some structs so that this file is more self-sufficient. 1998-02-03 21:52:02 +00:00
if_ether.c Prevent modification of permanent ARP entries (PR kern/7649) 1998-09-17 00:04:21 +00:00
if_ether.h Make INET a proper option. 1998-01-08 23:42:31 +00:00
if_fddi.h
igmp_var.h Some staticized variables were still declared to be extern. 1997-09-07 05:27:26 +00:00
igmp.c Last major round (Unless Bruce thinks of somthing :-) of malloc changes. 1997-10-12 20:26:33 +00:00
igmp.h
in_cksum.c
in_hostcache.c Remove a bunch of variables which were unused both in GENERIC and LINT. 1997-11-07 08:53:44 +00:00
in_hostcache.h Add for public examination the beginnings of the per-host cache support 1997-06-18 01:24:28 +00:00
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 Convert socket structures to be type-stable and add a version number. 1998-05-15 20:11:40 +00:00
in_proto.c Yow! Completely change the way socket options are handled, eliminating 1998-08-23 03:07:17 +00:00
in_rmx.c Converted the last instance of hzto() to tvtohz(). 1998-08-05 16:59:20 +00:00
in_systm.h Declare n_short, n_long and n_time as fixed-sized types. Don't ifdef 1998-07-13 10:54:24 +00:00
in_var.h This commit fixes various 64bit portability problems required for 1998-06-07 17:13:14 +00:00
in.c This commit fixes various 64bit portability problems required for 1998-06-07 17:13:14 +00:00
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 Made some disgusting ifdefs even more disgusting to enable the support 1998-08-15 21:51:53 +00:00
ip_compat.h Import ipfilter 3.2.7 kernel components 1998-06-20 18:18:05 +00:00
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 Merge ipfilter 3.2.3 -> 3.2.7 changes onto mainline. 1998-06-20 18:37:51 +00:00
ip_flow.c Removed unused includes. 1998-06-21 14:53:44 +00:00
ip_flow.h Move (private) struct ipflow out of ip_var.h, to reduce dependencies 1998-05-19 15:53:50 +00:00
ip_frag.c Staticize some more. 1998-11-26 18:54:52 +00:00
ip_frag.h Import ipfilter 3.2.7 kernel components 1998-06-20 18:18:05 +00:00
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 Declare id_mask as a fixed-size type. 1998-07-13 11:01:03 +00:00
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 Made some disgusting ifdefs even more disgusting to enable the support 1998-08-15 21:51:53 +00:00
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 Merge ipfilter 3.2.3 -> 3.2.7 changes onto mainline. 1998-06-20 18:37:51 +00:00
ip_proxy.h Import kernel parts of ipfilter v3.2.3 1998-03-21 10:11:54 +00:00
ip_state.c Staticize some more. 1998-11-26 18:54:52 +00:00
ip_state.h Import ipfilter 3.2.7 kernel components 1998-06-20 18:18:05 +00:00
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 Fixed pedantic semantics errors (bitfields not of type int, signed int 1998-06-07 12:00:13 +00:00
ipl.h Import ipfilter 3.2.7 kernel components 1998-06-20 18:18:05 +00:00
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 Fixed printf format errors. 1998-08-17 01:05:25 +00:00
tcp_debug.h
tcp_fsm.h Fix all areas of the system (or at least all those in LINT) to avoid storing 1997-08-16 19:16:27 +00:00
tcp_input.c Reviewed by: freebsd-current 1998-12-03 20:23:21 +00:00
tcp_output.c Fixed overflow and sign extension bugs in 1998-07-13 11:53:59 +00:00
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 Ensure that TCP_REXMTVAL doesn't return a value less than t_rttmin. This 1998-04-24 09:25:39 +00:00
tcp_timer.h Some staticized variables were still declared to be extern. 1997-09-07 05:27:26 +00:00
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 Declare tcp_seq and tcp_cc as fixed-size types. Half fixed type 1998-07-13 11:09:52 +00:00
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