freebsd-dev/sys/fs
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
..
cd9660 Don't follow null bdevsw pointers. The `major(dev) < nblkdev' test rotted 1998-10-25 19:26:18 +00:00
coda Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
deadfs Return ENOTTY instead of EBADF for ioctls on dead vnodes. This fixes 1998-11-22 09:19:07 +00:00
fdescfs Removed statically configured mount type numbers (MOUNT_*) and all 1998-09-07 13:17:06 +00:00
fifofs Back out DIAGNOSTIC changes. 1998-02-06 12:14:30 +00:00
msdosfs Honor MNT_NOATIME. 1998-11-29 22:38:57 +00:00
nullfs Removed statically configured mount type numbers (MOUNT_*) and all 1998-09-07 13:17:06 +00:00
portalfs Removed statically configured mount type numbers (MOUNT_*) and all 1998-09-07 13:17:06 +00:00
procfs Examine all occurrences of sprintf(), strcat(), and str[n]cpy() 1998-12-04 22:54:57 +00:00
specfs Use TAILQ macros for clean/dirty block list processing. Set b_xflags 1998-10-31 15:31:29 +00:00
umapfs "fix" a warning that has been bugging me for ages. Eliminate a couple 1998-11-09 09:21:25 +00:00
unionfs Finished updating module event handlers to be compatible with 1998-11-15 15:33:52 +00:00