/[base]
ViewVC logotype

Revision 316852


Jump to revision: Previous Next
Author: kib
Date: Fri Apr 14 15:22:00 2017 UTC (7 years, 2 months ago)
Changed paths: 1
Log Message:
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


Changed paths

Path Details
Directoryhead/sbin/fsck_ffs/pass1.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27