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
This commit is contained in:
Gleb Smirnoff 2016-10-25 17:13:58 +00:00
parent ccd08e4d99
commit 42854d99e8

View File

@ -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;