aboutsummaryrefslogtreecommitdiff
path: root/contrib/bc
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1998-05-02 03:02:13 +0000
committerPeter Wemm <peter@FreeBSD.org>1998-05-02 03:02:13 +0000
commit3c33646725b8ee575936de0117ea70e4986b7d9d (patch)
tree0da9cd808b73fa11d5e6a0a8ea5473db93d01e92 /contrib/bc
parentb3a77ee548aebeb9cf3b0f61c3d6f3ca52eac637 (diff)
downloadsrc-3c33646725b8ee575936de0117ea70e4986b7d9d.tar.gz
src-3c33646725b8ee575936de0117ea70e4986b7d9d.zip
Seatbelts for vm_page_bits() in case a file offset is passed in rather than
the page offset. If a large file offset was passed in, a large negative array index could be generated which could cause page faults etc at worst and file corruption at the least. (Pages are allocated within file space on page alignment boundaries, so a file offset being passed in here is harmless to DTRT. The case where this was happening has already been fixed though, this is in case it happens again). Reviewed by: dyson
Notes
Notes: svn path=/head/; revision=35612
Diffstat (limited to 'contrib/bc')
0 files changed, 0 insertions, 0 deletions