fixed heap-buffer-overflow in vcs_cart_slot_device::detect_super_chip() (nw)

This commit is contained in:
Oliver Stöneberg 2014-09-10 09:38:57 +00:00
parent b79979da8b
commit 1fdc168792

View File

@ -660,7 +660,7 @@ int vcs_cart_slot_device::detect_super_chip(UINT8 *cart, UINT32 len)
if (len == 0x4000)
{
for (int i = 0; i < len - (sizeof signatures/sizeof signatures[0]); i++)
for (int i = 0; i < len - sizeof signatures[0]; i++)
{
for (int j = 0; j < (sizeof signatures/sizeof signatures[0]); j++)
{