mirror of
https://github.com/holub/mame
synced 2025-04-26 10:13:37 +03:00
added assert for index out-of-bounds access with deroon (nw)
This commit is contained in:
parent
0a39438a26
commit
64b2aa2fe0
@ -212,7 +212,10 @@ WRITE16_MEMBER(tecmosys_state::tecmosys_prot_data_w)
|
||||
m_device_value = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
assert(m_device_read_ptr >= 0 && m_device_read_ptr < ARRAY_LENGTH(m_device_data->checksums));
|
||||
m_device_value = data == m_device_data->checksums[m_device_read_ptr] ? m_device_data->checksums[m_device_read_ptr++] : 0xff;
|
||||
}
|
||||
break;
|
||||
|
||||
case DS_DONE:
|
||||
|
Loading…
Reference in New Issue
Block a user