From dfd22007710243bf7c37b95d7258670a5ffc8733 Mon Sep 17 00:00:00 2001 From: Ralf Grillenberger Date: Wed, 19 Jan 2011 17:22:13 +0000 Subject: [PATCH] Fix out of bounds access (SF bug 3156587, thanks danoon for reporting). The unused byte in the 32-bit color value of the hardware mouse cursor pixels was affected. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3668 --- include/vga.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/vga.h b/include/vga.h index 65b526fc..dd6f41b9 100644 --- a/include/vga.h +++ b/include/vga.h @@ -173,8 +173,8 @@ typedef struct { Bit8u curmode; Bit16u originx, originy; Bit8u fstackpos, bstackpos; - Bit8u forestack[3]; - Bit8u backstack[3]; + Bit8u forestack[4]; + Bit8u backstack[4]; Bit16u startaddr; Bit8u posx, posy; Bit8u mc[64][64];