diff options
author | glebius <glebius@FreeBSD.org> | 2016-10-25 17:15:32 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2016-10-25 17:15:32 +0000 |
commit | 2fe29685ea7484a1cb140d86ab5aa663d3503760 (patch) | |
tree | 7d1e97c72cbd56db1ddab55398439ffc98d0904a /usr.sbin | |
parent | 8f57d18797f1c5631faeaac06ce783b7db66fc78 (diff) | |
download | FreeBSD-src-2fe29685ea7484a1cb140d86ab5aa663d3503760.zip FreeBSD-src-2fe29685ea7484a1cb140d86ab5aa663d3503760.tar.gz |
Merge r307937:
Fix unchecked array reference in the VGA device emulation code.
Submitted by: Ilja Van Sprundel <ivansprundel ioactive.com>
Patch by: tychon
Security: SA-16:32
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bhyve/vga.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/bhyve/vga.c b/usr.sbin/bhyve/vga.c index 208064b..57dc26e 100644 --- a/usr.sbin/bhyve/vga.c +++ b/usr.sbin/bhyve/vga.c @@ -161,10 +161,10 @@ struct vga_softc { */ struct { uint8_t dac_state; - int dac_rd_index; - int dac_rd_subindex; - int dac_wr_index; - int dac_wr_subindex; + uint8_t dac_rd_index; + uint8_t dac_rd_subindex; + uint8_t dac_wr_index; + uint8_t dac_wr_subindex; uint8_t dac_palette[3 * 256]; uint32_t dac_palette_rgb[256]; } vga_dac; |