From owner-cvs-all@FreeBSD.ORG Wed Oct 13 16:27:27 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C497B16A4CE; Wed, 13 Oct 2004 16:27:27 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A542843D58; Wed, 13 Oct 2004 16:27:27 +0000 (GMT) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i9DGRRd0017544; Wed, 13 Oct 2004 16:27:27 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from delphij@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i9DGRRas017543; Wed, 13 Oct 2004 16:27:27 GMT (envelope-from delphij) Message-Id: <200410131627.i9DGRRas017543@repoman.freebsd.org> From: Xin LI Date: Wed, 13 Oct 2004 16:27:27 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Subject: cvs commit: src/sys/fs/msdosfs msdosfs_fat.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Oct 2004 16:27:28 -0000 delphij 2004-10-13 16:27:27 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) sys/fs/msdosfs msdosfs_fat.c Log: MFC revision 1.36 date: 2004/09/08 10:57:09; author: tjr; state: Exp; lines: +5 -0 Merge 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. Approved by: re (scottl) Approved by: murray (mentor) Revision Changes Path 1.35.2.1 +5 -0 src/sys/fs/msdosfs/msdosfs_fat.c