Previous 199869 Revisions Next

r28751 Thursday 20th March, 2014 at 09:53:02 UTC by Oliver Stöneberg
added assert for kothello AddressSanitizer heap-buffer-overflow (nw)
[src/mame/drivers]shanghai.c

trunk/src/mame/drivers/shanghai.c
r28750r28751
9494         b &= (HD63484_RAM_SIZE - 1);
9595         src = m_hd63484->ram_r(space, b, 0xffff);
9696         bitmap.pix16(y, x)     = src & 0x00ff;
97         assert(y >= 0 && y < bitmap.height());
98         assert(x >= 0 && x < bitmap.width());
9799         bitmap.pix16(y, x + 1) = (src & 0xff00) >> 8;
98100         b++;
99101      }

Previous 199869 Revisions Next


© 1997-2024 The MAME Team