summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_synch.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1994-09-02 10:23:43 +0000
committerdg <dg@FreeBSD.org>1994-09-02 10:23:43 +0000
commit70a7b53e066a66692fa03c5ba75393c4fda4bd24 (patch)
tree03834478d06cab332efebe8dddf79fd94ed78f3a /sys/kern/kern_synch.c
parent28c9f84238cb7b612ca7daf91875168e7453dbd6 (diff)
downloadFreeBSD-src-70a7b53e066a66692fa03c5ba75393c4fda4bd24.zip
FreeBSD-src-70a7b53e066a66692fa03c5ba75393c4fda4bd24.tar.gz
Disallow truncating to negative file sizes. Doing so causes ffs_truncate()
and perhaps other fs truncate's to go crazy and panic the machine or worse. This fixes the truncate bug reported by Michael Class.
Diffstat (limited to 'sys/kern/kern_synch.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud