Previous 199869 Revisions Next

r18112 Monday 24th September, 2012 at 14:01:50 UTC by Oliver Stöneberg
fixed MT03464: fixed potential out of array access in src/emu/video/voodoo.c logerror() [Oliver Stöneberg]
[src/emu/video]voodoo.c

trunk/src/emu/video/voodoo.c
r18111r18112
37203720   /* first make sure this register is readable */
37213721   if (!(v->regaccess[regnum] & REGISTER_READ))
37223722   {
3723      logerror("VOODOO.%d.ERROR:Invalid attempt to read %s\n", v->index, v->regnames[regnum]);
3723      logerror("VOODOO.%d.ERROR:Invalid attempt to read %s\n", v->index, regnum < 225 ? v->regnames[regnum] : "unknown register");
37243724      return 0xffffffff;
37253725   }
37263726

Previous 199869 Revisions Next


© 1997-2024 The MAME Team