mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
fixed heap-buffer-overflow in vcs_cart_slot_device::detect_super_chip() (nw)
This commit is contained in:
parent
b79979da8b
commit
1fdc168792
@ -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++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user