Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Oct 2016 17:15:33 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r307939 - stable/11/usr.sbin/bhyve
Message-ID:  <201610251715.u9PHFXSZ076446@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Tue Oct 25 17:15:32 2016
New Revision: 307939
URL: https://svnweb.freebsd.org/changeset/base/307939

Log:
  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

Modified:
  stable/11/usr.sbin/bhyve/vga.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.sbin/bhyve/vga.c
==============================================================================
--- stable/11/usr.sbin/bhyve/vga.c	Tue Oct 25 17:14:50 2016	(r307938)
+++ stable/11/usr.sbin/bhyve/vga.c	Tue Oct 25 17:15:32 2016	(r307939)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610251715.u9PHFXSZ076446>