tj90241/cen64-rom — pull request #1 by jkbenaim (2013-09-10 00:56:03+00:00)
Title: Check that DMA transfers from cart to RAM really do have a source address in cartspace

I found a test ROM that caused CEN64 to segfault in memcpy.

The test ROM starts a DMA transfer from 0x060a4900. This is way outside of cartspace, but CEN64 would attempt to transfer data from the cart anyway, with [cart rom base] + 0x060a4900 as a source address.

This patch checks that the DMA source address is actually in cartspace before starting the transfer, and ignores the transfer otherwise.