diff options
author | Oliver Stöneberg <oliverst@online.de> | 2014-10-24 18:01:36 +0200 |
---|---|---|
committer | Oliver Stöneberg <oliverst@online.de> | 2014-10-24 18:01:36 +0200 |
commit | 9867043d73f42342fbcc87c4b06af3cf9033db56 (patch) | |
tree | 444d617a1787009fa5bec1acd72fde3e470c607c | |
parent | 3e4c2c84ea5aa0584b07b7c193093941eb110739 (diff) |
added assert for index out-of-bounds access with jolypark (nw)
-rw-r--r-- | src/mame/drivers/spinb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mame/drivers/spinb.c b/src/mame/drivers/spinb.c index dfea8354bd7..d2e1bd26032 100644 --- a/src/mame/drivers/spinb.c +++ b/src/mame/drivers/spinb.c @@ -578,6 +578,7 @@ UINT32 spinb_state::screen_update(screen_device &screen, bitmap_ind16 &bitmap, c UINT16 *p = &bitmap.pix16(sy++); for(x = 0; x < 16; x++) { + assert((ma + 0x200) > 0 && (ma + 0x200) < ARRAY_LENGTH(m_dmdram)); gfx = m_dmdram[ma+0x200]; gfx1 = m_dmdram[ma++]; |