svn commit: r307937 - head/usr.sbin/bhyve

Gleb Smirnoff glebius at FreeBSD.org
Tue Oct 25 17:13:59 UTC 2016


Author: glebius
Date: Tue Oct 25 17:13:58 2016
New Revision: 307937
URL: https://svnweb.freebsd.org/changeset/base/307937

Log:
  Fix unchecked array reference in the VGA device emulation code.
  
  Submitted by:   Ilja Van Sprundel <ivansprundel at ioactive.com>
  Patch by:	tychon
  Security:       SA-16:32

Modified:
  head/usr.sbin/bhyve/vga.c

Modified: head/usr.sbin/bhyve/vga.c
==============================================================================
--- head/usr.sbin/bhyve/vga.c	Tue Oct 25 17:13:46 2016	(r307936)
+++ head/usr.sbin/bhyve/vga.c	Tue Oct 25 17:13:58 2016	(r307937)
@@ -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;


More information about the svn-src-head mailing list