diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-01-04 23:21:56 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-01-04 23:21:56 -0800 |
commit | a788b768cdaffb4bcc62a0f45c1ac0d005db9aa6 (patch) | |
tree | 7bea2a0fb5294f2a213e81c7fc1ad084af670b63 /m68k_core.c | |
parent | d8bb1db03b5f3c3beb86dce633f89872d05318a5 (diff) |
Prevent an infinite loop when handling out of bounds addresses in translate_m68k_stream
Diffstat (limited to 'm68k_core.c')
-rw-r--r-- | m68k_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/m68k_core.c b/m68k_core.c index 46c4950..fbd8923 100644 --- a/m68k_core.c +++ b/m68k_core.c @@ -766,6 +766,7 @@ void translate_m68k_stream(uint32_t address, m68k_context * context) do { encoded = get_native_pointer(address, (void **)context->mem_pointers, &opts->gen); if (!encoded) { + map_native_address(context, address, code->cur, 2, 1); translate_out_of_bounds(code); break; } |