From 1fdc168792d70b672f1452c9b1c6f3944013e879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Wed, 10 Sep 2014 09:38:57 +0000 Subject: [PATCH] fixed heap-buffer-overflow in vcs_cart_slot_device::detect_super_chip() (nw) --- src/emu/bus/vcs/vcs_slot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/bus/vcs/vcs_slot.c b/src/emu/bus/vcs/vcs_slot.c index 0c3f80bcbb6..3bbc9de4021 100755 --- a/src/emu/bus/vcs/vcs_slot.c +++ b/src/emu/bus/vcs/vcs_slot.c @@ -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++) {