From fcb030d94db35eb002c342475c6608bb46fc5d92 Mon Sep 17 00:00:00 2001 From: Wilbert Pol Date: Sat, 9 Feb 2013 11:07:40 +0000 Subject: [PATCH] (MESS) gb.c: Prevent array out of bound access when logging SGB packet information (nw) --- src/mess/machine/gb.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mess/machine/gb.c b/src/mess/machine/gb.c index e39b489d9e6..2160cacaa53 100644 --- a/src/mess/machine/gb.c +++ b/src/mess/machine/gb.c @@ -359,7 +359,7 @@ WRITE8_MEMBER(gb_state::gb_io2_w) } #ifdef MAME_DEBUG -static const char *const sgbcmds[26] = +static const char *const sgbcmds[32] = { "PAL01 ", "PAL23 ", @@ -387,6 +387,12 @@ static const char *const sgbcmds[26] = "MASK_EN ", "OBJ_TRN ", "????????", + "????????", + "????????", + "????????", + "????????", + "????????", + "????????" }; #endif