summaryrefslogtreecommitdiffstats
path: root/usr.sbin/hoststatectl/parser.c
diff options
context:
space:
mode:
authorgwk <gwk@openbsd.org>2007-01-28 20:28:50 +0000
committergwk <gwk@openbsd.org>2007-01-28 20:28:50 +0000
commit38d01acec6eb88ade8619237c612f5e4d0e0c113 (patch)
tree26173394c51e3f83055b5932ef533cef01abaa6e /usr.sbin/hoststatectl/parser.c
parentFix pasto. (diff)
downloadwireguard-openbsd-38d01acec6eb88ade8619237c612f5e4d0e0c113.tar.xz
wireguard-openbsd-38d01acec6eb88ade8619237c612f5e4d0e0c113.zip
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 'usr.sbin/hoststatectl/parser.c')
0 files changed, 0 insertions, 0 deletions