Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix segfault when DMAing past the end of cart ROM.
When a game triggers a DMA from the cart ROM area to RDRAM, part or all of the DMA'd area is not covered by the currently-loaded ROM, cen64 treats it as a series of reads from open-bus. A bug in the code that handles this case was causing segfaults. Hat-tip to cen64 user Grim who provided a test rom that triggered this bug. His test ROM was less than (1 MB + 4 KB) in size, which was causing the initial 1MB DMA to trigger this bug.
- Loading branch information