Previous 199869 Revisions Next

r31583 Sunday 10th August, 2014 at 03:49:38 UTC by Oliver Stöneberg
added assert for index out-of-bounds access with sc4crzgnlm, sc4casrya and others / use const reference (nw)
[src/mame/drivers]bfm_sc45_helper.c

trunk/src/mame/drivers/bfm_sc45_helper.c
r31582r31583
216216
217217               //if (pos <= 5)
218218               {
219                  assert(pos >= 0 && pos < ARRAY_LENGTH(sc4inputs[port]));
219220                  if (sc4inputs[port][pos].used == false)
220221                  {
221222                     sc4inputs[port][pos].used = true;
r31582r31583
383384
384385lampinfo lamps[16][16];
385386
386void set_clickable_temp(running_machine &machine, astring teststring, int clickport, int clickmask)
387void set_clickable_temp(running_machine &machine, const astring &teststring, int clickport, int clickmask)
387388{
388389   for (int y = 0; y < 16; y++)
389390   {

Previous 199869 Revisions Next


© 1997-2024 The MAME Team