Previous 199869 Revisions Next

r32896 Thursday 23rd October, 2014 at 07:31:42 UTC by Oliver Stöneberg
added assert for index out-of-bounds access in z8536_device::external_port_w() with apple3 (nw)
[src/emu/machine]z8536.c

trunk/src/emu/machine/z8536.c
r241407r241408
828828   case PORT_A:
829829   case PORT_B:
830830      {
831      assert((PORT_A_DATA_DIRECTION + (port << 3)) >= 0 && (PORT_A_DATA_DIRECTION + (port << 3)) < ARRAY_LENGTH(m_register));
831832      UINT8 ddr = m_register[PORT_A_DATA_DIRECTION + (port << 3)];
832833
833834      if (!BIT(ddr, bit)) return;


Previous 199869 Revisions Next


© 1997-2024 The MAME Team