summaryrefslogtreecommitdiff
path: root/sys/dev/pci/fmsreg.h
diff options
context:
space:
mode:
authorGordon Willem Klok <gwk@cvs.openbsd.org>2007-01-28 20:28:51 +0000
committerGordon Willem Klok <gwk@cvs.openbsd.org>2007-01-28 20:28:51 +0000
commit825790e3baa4a66cc1758d6afaec568ef9419fea (patch)
tree7918ebb31cdb25d0dc9e1b9f226bb4936e629991 /sys/dev/pci/fmsreg.h
parent801005736e80aedb882b04269adebfd52d1bf497 (diff)
Fix a number of issues with vesabios discovered by miod@
1. Add bounds checking to vga_pci_mmap, fixing a potential security issue. Limit the amount of memory to what the vbe info structure says the card card has. This should be nicely refined to limit to the amount of memory needed by the active resolution and depth but this will do for the time being. 2. Fix several places in vesafb.c where the return of kvm86_bios_addpage() isnt being checked. Also ensure that if vesafb_get_mode_info() fails that it cleans up after itself by releasing the page it added. 3. Correct the range checks in vesafb_putcmap and vesafb_getcmap, harmonize code with similar code found else where. ok miod@
Diffstat (limited to 'sys/dev/pci/fmsreg.h')
0 files changed, 0 insertions, 0 deletions