mirror of
https://github.com/holub/mame
synced 2025-04-20 23:42:22 +03:00
fixed array out-of-bounds access in nmk16_state::tharrier_mcu_r() (nw)
This commit is contained in:
parent
5710c0585f
commit
8483fb834e
@ -249,7 +249,7 @@ READ16_MEMBER(nmk16_state::tharrier_mcu_r)
|
||||
else
|
||||
{
|
||||
res = to_main[m_prot_count++];
|
||||
if (m_prot_count > sizeof(to_main))
|
||||
if (m_prot_count == sizeof(to_main))
|
||||
m_prot_count = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user