mirror of
https://github.com/holub/mame
synced 2025-06-16 01:09:09 +03:00
added assert to src/mame/machine/dec0.c to indicate array out-of-bounds access (nw)
This commit is contained in:
parent
746daf078c
commit
f857f2576c
@ -119,11 +119,13 @@ WRITE8_MEMBER(dec0_state::hippodrm_shared_w)
|
|||||||
READ16_MEMBER(dec0_state::hippodrm_68000_share_r)
|
READ16_MEMBER(dec0_state::hippodrm_68000_share_r)
|
||||||
{
|
{
|
||||||
if (offset==0) space.device().execute().yield(); /* A wee helper */
|
if (offset==0) space.device().execute().yield(); /* A wee helper */
|
||||||
|
assert(offset >= 0 && offset < 0xff);
|
||||||
return m_share[offset]&0xff;
|
return m_share[offset]&0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
WRITE16_MEMBER(dec0_state::hippodrm_68000_share_w)
|
WRITE16_MEMBER(dec0_state::hippodrm_68000_share_w)
|
||||||
{
|
{
|
||||||
|
assert(offset >= 0 && offset < 0xff);
|
||||||
m_share[offset]=data&0xff;
|
m_share[offset]=data&0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user