Previous 199869 Revisions Next

r32050 Wednesday 10th September, 2014 at 09:38:57 UTC by Oliver Stöneberg
fixed heap-buffer-overflow in vcs_cart_slot_device::detect_super_chip() (nw)
[src/emu/bus/vcs]vcs_slot.c

trunk/src/emu/bus/vcs/vcs_slot.c
r32049r32050
660660
661661   if (len == 0x4000)
662662   {
663      for (int i = 0; i < len - (sizeof signatures/sizeof signatures[0]); i++)
663      for (int i = 0; i < len - sizeof signatures[0]; i++)
664664      {
665665         for (int j = 0; j < (sizeof signatures/sizeof signatures[0]); j++)
666666         {

Previous 199869 Revisions Next


© 1997-2024 The MAME Team