From owner-freebsd-commit Wed Jan 24 10:54:12 1996 Return-Path: owner-commit Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA12103 for freebsd-commit-outgoing; Wed, 24 Jan 1996 10:54:12 -0800 (PST) Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA12070 for cvs-all-outgoing; Wed, 24 Jan 1996 10:53:45 -0800 (PST) Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA12044 for cvs-sys-outgoing; Wed, 24 Jan 1996 10:53:22 -0800 (PST) Received: (from mpp@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA11999 Wed, 24 Jan 1996 10:52:55 -0800 (PST) Date: Wed, 24 Jan 1996 10:52:55 -0800 (PST) From: Mike Pritchard Message-Id: <199601241852.KAA11999@freefall.freebsd.org> To: CVS-committers, cvs-sys Subject: cvs commit: src/sys/nfs nfs_bio.c Sender: owner-commit@FreeBSD.ORG Precedence: bulk mpp 96/01/24 10:52:48 Modified: sys/nfs nfs_bio.c Log: Add a check to prevent a computation from underflowing and causing a panic due to an attaempt to allocate a buffer for a terabyte or so of data when an attempt is made to create sparse data (e.g. a holey file) more than 1 block past the end of the file. Note: some other areas of this code need to be looked at, since they might cause problems when the file size exceeds 2GB, due to storing results in ints when the computations are being done with quad sized variables. Reviewed by: bde Revision Changes Path 1.22 +4 -3 src/sys/nfs/nfs_bio.c