freebsd-skq/sbin/fsck_ffs
Conrad Meyer 333d028407 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
ea.c
fsck_ffs.8
fsck.h
fsutil.c Use MIN/MAX macros from sys/param.h. 2016-05-02 01:28:21 +00:00
gjournal.c
globs.c
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
Makefile.depend
pass1.c
pass1b.c
pass2.c Use MIN/MAX macros from sys/param.h. 2016-05-02 01:28:21 +00:00
pass3.c
pass4.c
pass5.c
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