mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
added assert for nbmj8688.c AddressSanitizer heap-buffer-overflow (nw)
This commit is contained in:
parent
8a01cd4200
commit
75eccffbec
@ -380,6 +380,8 @@ UINT16 hd61830_device::draw_scanline(bitmap_ind16 &bitmap, const rectangle &clip
|
||||
for (int x = 0; x < m_hp; x++)
|
||||
{
|
||||
bitmap.pix16(y, (sx * m_hp) + x) = BIT(data1, x);
|
||||
assert(y >= 0 && y < bitmap.height());
|
||||
assert(((sx * m_hp) + x + m_hp) >= 0 && ((sx * m_hp) + x + m_hp) < bitmap.width());
|
||||
bitmap.pix16(y, (sx * m_hp) + x + m_hp) = BIT(data2, x);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user