freebsd-skq/sbin/fsck_ffs
cem c33e0df5bb fsck_ffs: Don't overrun mount device buffer
Maybe this case is impossible.  Either way, when attempting to "/dev/"-prefix a
non-global device name, check that we do not overrun the f_mntfromname buffer.

In this case, truncating (with strlcpy or similar) would not be useful, since
the f_mntfromname result of getmntpt() is passed directly to open(2) later.

Reported by:	Coverity
CID:		1006789
Sponsored by:	EMC / Isilon Storage Division
2016-05-11 16:20:23 +00:00
..
dir.c fsck_ffs for pointers replace 0 with NULL. 2016-04-12 22:55:47 +00:00
ea.c UFS2: make di_extsize unsigned. 2013-10-24 00:33:29 +00:00
fsck_ffs.8 Add the -R option to allow fsck_ffs to restart itself when too many critical 2013-12-30 01:16:08 +00:00
fsck.h Fix a ton of speelling errors 2015-10-21 05:37:09 +00:00
fsutil.c Use MIN/MAX macros from sys/param.h. 2016-05-02 01:28:21 +00:00
gjournal.c
globs.c Cleanup unnecessary semicolons from utilities we all love. 2016-04-15 22:31:22 +00:00
inode.c Use MIN/MAX macros from sys/param.h. 2016-05-02 01:28:21 +00:00
main.c fsck_ffs: Don't overrun mount device buffer 2016-05-11 16:20:23 +00:00
Makefile Explicitly add more files to the 'runtime' package. 2016-02-09 20:19:31 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
pass1.c fsck_ffs for pointers replace 0 with NULL. 2016-04-12 22:55:47 +00:00
pass1b.c fsck_ffs for pointers replace 0 with NULL. 2016-04-12 22:55:47 +00:00
pass2.c Use MIN/MAX macros from sys/param.h. 2016-05-02 01:28:21 +00:00
pass3.c
pass4.c fsck_ffs for pointers replace 0 with NULL. 2016-04-12 22:55:47 +00:00
pass5.c fsck_ffs for pointers replace 0 with NULL. 2016-04-12 22:55:47 +00:00
setup.c Use MIN/MAX macros from sys/param.h. 2016-05-02 01:28:21 +00:00
suj.c sbin: ake use of our rounddown() macro when sys/param.h is available. 2016-05-01 02:24:05 +00:00
utilities.c fsck_ffs for pointers replace 0 with NULL. 2016-04-12 22:55:47 +00:00