bochs: backport fix for out-of-bounds memory access
Upstream SVN r11912: "Fixed some gcc 4.8.1 warnings" Change-Id: I599eb4d6bb8d5a7a2585bcca7d9a738ac2930aac
This commit is contained in:
committed by
Horst Schirmeier
parent
feb61ced7b
commit
3fc3c6a689
@ -558,7 +558,7 @@ void bx_vga_c::determine_screen_dimensions(unsigned *piHeight, unsigned *piWidth
|
||||
{
|
||||
int ai[0x20];
|
||||
int i,h,v;
|
||||
for (i = 0 ; i < 0x20 ; i++)
|
||||
for (i = 0 ; i < 0x19 ; i++)
|
||||
ai[i] = BX_VGA_THIS s.CRTC.reg[i];
|
||||
|
||||
h = (ai[1] + 1) * 8;
|
||||
|
||||
Reference in New Issue
Block a user