freebsd-skq/sbin/fsck_ffs
Konstantin Belousov f4247773fa In fsck_ffs pass1, prevent the inosused variable from wrapping.
The loop that scans the used inode map when soft updates is in use
assumes that the inosused variable is signed.  However, ino_t is
unsigned, so the loop invariant is incorrect and the check for
inosused wrapping to < 0 can never be true.

Instead of checking for wrap after the fact just prevent it from
happening in the first place.

PR:	218592
Submitted by:	Todd Miller <todd.miller@courtesan.com>
Reviewed by:	mckusick
MFC after:	1 week
2017-04-14 15:22:00 +00:00
..
dir.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ea.c
fsck_ffs.8 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
fsck.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
fsutil.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
gjournal.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
globs.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
inode.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
main.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
Makefile sbin: normalize paths using SRCTOP-relative paths or :H when possible 2017-03-04 11:33:01 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
pass1.c In fsck_ffs pass1, prevent the inosused variable from wrapping. 2017-04-14 15:22:00 +00:00
pass1b.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
pass2.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
pass3.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
pass4.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
pass5.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
setup.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
suj.c prefix UFS symbols with UFS_ to reduce namespace pollution 2017-02-15 19:50:26 +00:00
utilities.c Renumber copyright clause 4 2017-02-28 23:42:47 +00:00