Commit 0dfc461
committed
Fix opcode table over-read crash on Windows
m68ki_build_opcode_table() scans past the end of the handler table
because the first while loop expects mask 0xff00 as a sentinel, but
m68kmake never generates entries with that mask. Add a zero-terminator
guard so the loop stops at the end of the table.
On Linux/macOS the over-read lands in zero-filled BSS and happens to
work. On Windows the read crosses into unmapped memory and crashes
with ACCESS_VIOLATION.1 parent ff38e8c commit 0dfc461
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
0 commit comments