freebsd-nq/sys/dev
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
..
advansys Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
aha Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
ahb Hook up ahapoll so that dumps, synchronize cache commands or any other 1998-10-09 21:38:36 +00:00
aic7xxx Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
ar Initialize isa_devtab entries for interrupt handlers in individual 1998-10-22 05:58:45 +00:00
atkbdc * Add hooks to allow the X server to access I/O ports and memory. 1998-11-15 18:25:17 +00:00
bktr * Fix a couple of places in the device pager where an address was 1998-11-08 12:39:07 +00:00
buslogic Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
ccd Update system to new device statistics code. 1998-09-15 08:15:30 +00:00
cs Initialize isa_devtab entries for interrupt handlers in individual 1998-10-22 05:58:45 +00:00
cy Fixed sloppy clearing of TS_BUSY. Don't clear it until the transmitter 1998-11-28 15:48:09 +00:00
de Alias Adaptec as a vendor of Cogent NICs. 1998-11-28 00:25:32 +00:00
dec Add semicolon to INTERFACE declarations 1998-11-08 18:35:53 +00:00
dgb Added D_TTY to the cdevswitch flags for all tty drivers. This is required 1998-08-23 08:26:42 +00:00
dpt Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
ed Initialize isa_devtab entries for interrupt handlers in individual 1998-10-22 05:58:45 +00:00
eisa Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
en Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
ep Initialize isa_devtab entries for interrupt handlers in individual 1998-10-22 05:58:45 +00:00
ex Initialize isa_devtab entries for interrupt handlers in individual 1998-10-22 05:58:45 +00:00
fdc Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
fe Initialize isa_devtab entries for interrupt handlers in individual 1998-10-22 05:58:45 +00:00
fxp Defer rundown (m_freem) of completed transmit buffers for no longer 1998-10-22 02:00:49 +00:00
hea Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
hfa Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
ic Use [u]intptr_t instead of [unsigned] long to convert and/or represent 1998-08-10 17:21:49 +00:00
ie Initialize isa_devtab entries for interrupt handlers in individual 1998-10-22 05:58:45 +00:00
iicbus Remove broken and useless intr interface. 1998-11-22 22:01:42 +00:00
isp Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
joy This commit fixes various 64bit portability problems required for 1998-06-07 17:13:14 +00:00
kbd Fix ROOL UP/DOWN keys of PC-98. 1998-11-18 08:33:58 +00:00
lnc Add Id string to if_lnc.h and fix up copyrights to be consistent and up to date. 1998-11-26 00:57:32 +00:00
mc146818 Major changes to the generic device framework for FreeBSD/alpha: 1998-06-14 13:46:10 +00:00
mcd Initialize isa_devtab entries for interrupt handlers in individual 1998-10-22 05:58:45 +00:00
mse Initialize isa_devtab entries for interrupt handlers in individual 1998-10-22 05:58:45 +00:00
pcf iicbus probe and attach deferred until root_bus_configure() call. 1998-11-04 22:09:17 +00:00
pci Initial commit of ported NetBSD USB stack 1998-11-26 23:13:13 +00:00
pcm/isa Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
pdq Fixed printf format errors. Only one left in LINT on i386's. 1998-08-24 02:28:16 +00:00
ppbus Eliminate a zillion "left-hand operand of comma expression has no effect" 1998-12-04 22:00:33 +00:00
ppc pcf.c: timeout management added 1998-10-31 11:37:09 +00:00
rc Initialize isa_devtab entries for interrupt handlers in individual 1998-10-22 05:58:45 +00:00
rp Added D_TTY to the cdevswitch flags for all tty drivers. This is required 1998-08-23 08:26:42 +00:00
scd Fixed printf format errors (only 1 left in GENERIC now). 1998-07-13 09:53:11 +00:00
si Fixed printf format errors. `struct eisa_device' uses a strange type 1998-08-23 10:12:12 +00:00
sio * Add hooks to allow the X server to access I/O ports and memory. 1998-11-15 18:25:17 +00:00
smbus Remove broken and useless intr interface. 1998-11-22 22:01:42 +00:00
snp This commit fixes various 64bit portability problems required for 1998-06-07 17:13:14 +00:00
sound/isa Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
speaker Fixed printf format errors. Only one left in LINT on i386's. 1998-08-24 02:28:16 +00:00
sr Initialize isa_devtab entries for interrupt handlers in individual 1998-10-22 05:58:45 +00:00
syscons * Fix a couple of places in the device pager where an address was 1998-11-08 12:39:07 +00:00
tx ifioctl takes a u_long rather than an int on 3.0 1998-11-09 09:34:00 +00:00
usb Initial commit of ported NetBSD USB stack 1998-11-26 23:13:13 +00:00
vinum Remove machine/cputypes.h - it's an i386 only thing 1998-11-06 01:34:06 +00:00
vn Remove the SLICE code. 1998-09-14 19:56:42 +00:00
vr An early Christmas present: add driver support for a whole bunch of 1998-12-04 18:01:24 +00:00
vx Import the (Fast) Etherlink XL driver. I'm reasonally confident in its 1998-08-16 17:14:59 +00:00
wl Depend on __FreeBSD_version instead of __FreeBSD__ 1998-11-15 19:30:48 +00:00