mirror of
https://github.com/holub/mame
synced 2025-07-04 09:28:51 +03:00
added assert for kothello AddressSanitizer heap-buffer-overflow (nw)
This commit is contained in:
parent
4a4044e10c
commit
8a01cd4200
@ -94,6 +94,8 @@ UINT32 shanghai_state::screen_update_shanghai(screen_device &screen, bitmap_ind1
|
||||
b &= (HD63484_RAM_SIZE - 1);
|
||||
src = m_hd63484->ram_r(space, b, 0xffff);
|
||||
bitmap.pix16(y, x) = src & 0x00ff;
|
||||
assert(y >= 0 && y < bitmap.height());
|
||||
assert(x >= 0 && x < bitmap.width());
|
||||
bitmap.pix16(y, x + 1) = (src & 0xff00) >> 8;
|
||||
b++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user