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: Brad Smith (bradcvs.openbsd.org)
Date: Fri Oct 31 2003 - 00:29:35 CST


CVSROOT: /cvs
Module name: src
Changes by: bradcvs.openbsd.org 2003/10/30 23:29:35

Modified files:
        sys/msdosfs : Tag: OPENBSD_3_3 msdosfs_fat.c

Log message:
MFC:
Fix by tedu

from netbsd:
Fix a panic that occurred when trying to traverse a corrupt msdosfs
filesystem. With this particular corruption, the code in pcbmap()
would compute an offset into an array that was way out of bounds,
so check the bounds before trying to access and return an error if
the offset would be out of bounds.

ok deraadt