OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
CVS: cvs.openbsd.org: src

From: Tom Cosgrove (tomcvs.openbsd.org)
Date: Thu Dec 14 2006 - 01:37:24 CST


CVSROOT: /cvs
Module name: src
Changes by: tomcvs.openbsd.org 2006/12/14 00:37:24

Modified files:
        sys/msdosfs : msdosfs_vfsops.c

Log message:
If an MS-DOS filesystem claims to have more clusters than can be
represented in the FAT, limit the number of clusters we work with
to the FAT value. This stops corrupt filesystems causing us to run
off the end of the FAT and panic()ing in fillinusemap().

Found by Jason Crawford (jasonrcrawford at gmail.com) with the MOKB
fs fuzzer. Initial debugging by thib.

ok krw