summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar arbee <rb6502@users.noreply.github.com>2020-09-27 20:02:47 -0400
committerGravatarGravatar arbee <rb6502@users.noreply.github.com>2020-09-27 20:02:47 -0400
commit264d0d19e04f21e7bfb78e7e71f14410cf1e8046 (patch)
tree6a395be3eba4a535edf88de0316be1fa53108db7
parentf6b3dcdb251037d2ff113507ee03395a2b298bdc (diff)
mac128: possible fix for out-of-bounds ROM access [R. Belmont]
-rw-r--r--src/mame/drivers/mac128.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mame/drivers/mac128.cpp b/src/mame/drivers/mac128.cpp
index d42a91fc82c..d75819c4107 100644
--- a/src/mame/drivers/mac128.cpp
+++ b/src/mame/drivers/mac128.cpp
@@ -336,7 +336,7 @@ uint16_t mac128_state::ram_r(offs_t offset)
{
if (m_overlay)
{
- return m_rom_ptr[offset];
+ return m_rom_ptr[offset & 0x7ffff];
}
return m_ram_ptr[offset & m_ram_mask];