mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
(MESS) gb.c: Prevent array out of bound access when logging SGB packet information (nw)
This commit is contained in:
parent
94c3fa3082
commit
fcb030d94d
@ -359,7 +359,7 @@ WRITE8_MEMBER(gb_state::gb_io2_w)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MAME_DEBUG
|
#ifdef MAME_DEBUG
|
||||||
static const char *const sgbcmds[26] =
|
static const char *const sgbcmds[32] =
|
||||||
{
|
{
|
||||||
"PAL01 ",
|
"PAL01 ",
|
||||||
"PAL23 ",
|
"PAL23 ",
|
||||||
@ -387,6 +387,12 @@ static const char *const sgbcmds[26] =
|
|||||||
"MASK_EN ",
|
"MASK_EN ",
|
||||||
"OBJ_TRN ",
|
"OBJ_TRN ",
|
||||||
"????????",
|
"????????",
|
||||||
|
"????????",
|
||||||
|
"????????",
|
||||||
|
"????????",
|
||||||
|
"????????",
|
||||||
|
"????????",
|
||||||
|
"????????"
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user