From owner-cvs-src@FreeBSD.ORG Tue Feb 26 03:08:23 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1963616A40B; Tue, 26 Feb 2008 03:08:23 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id E492E13C4DD; Tue, 26 Feb 2008 03:08:22 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1Q38Ma1082965; Tue, 26 Feb 2008 03:08:22 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from delphij@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1Q38Mk9082964; Tue, 26 Feb 2008 03:08:22 GMT (envelope-from delphij) Message-Id: <200802260308.m1Q38Mk9082964@repoman.freebsd.org> From: Xin LI Date: Tue, 26 Feb 2008 03:08:22 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sbin/fsck_ffs pass1.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2008 03:08:23 -0000 delphij 2008-02-26 03:08:22 UTC FreeBSD src repository Modified files: sbin/fsck_ffs pass1.c Log: In pass1(), cap inosused to fs_ipg rather than allowing arbitrary number read from cylinder group. Chances that we read a smarshed cylinder group, and we can not 100% trust information it has supplied. fsck_ffs(8) will crash otherwise for some cases. Revision Changes Path 1.44 +4 -2 src/sbin/fsck_ffs/pass1.c