Skip to content

Commit

Permalink
spcpokan: fix out-of-bounds access on POST VROM test. (MT mamedev#8307)…
Browse files Browse the repository at this point in the history
… [R. Belmont]
  • Loading branch information
rb6502 authored and wilbertpol committed May 8, 2022
1 parent 666dbd2 commit e293a9a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mame/drivers/konmedal68k.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ class konmedal68k_state : public driver_device
}

if (offset & 1)
{
offset |= 0x100000;
offset &= ~1;
}

return m_k056832->piratesh_rom_r(offset);
}
Expand Down

0 comments on commit e293a9a

Please sign in to comment.