summaryrefslogtreecommitdiffstats
path: root/lkm
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1996-01-24 18:52:18 +0000
committermpp <mpp@FreeBSD.org>1996-01-24 18:52:18 +0000
commit35fc06f05c328ee797c384c014cb0eb01c353115 (patch)
tree3c308891bde22beacf0a85a50e0d888b94c8f547 /lkm
parent945d0db76ff371ae455df11ceabfcc76f4985538 (diff)
downloadFreeBSD-src-35fc06f05c328ee797c384c014cb0eb01c353115.zip
FreeBSD-src-35fc06f05c328ee797c384c014cb0eb01c353115.tar.gz
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
Diffstat (limited to 'lkm')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud