Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jan 1996 10:52:55 -0800 (PST)
From:      Mike Pritchard <mpp>
To:        CVS-committers, cvs-sys
Subject:   cvs commit: src/sys/nfs nfs_bio.c
Message-ID:  <199601241852.KAA11999@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601241852.KAA11999>