mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-02 22:34:50 +02:00

HandleFastmemFault works correctly when faults only happen in expected locations, but it does some things that are rather dangerous for faults in unexpected locations, like decrementing an iterator without checking whether it's equal to begin. This change cleans up the logic by making m_fault_to_handler's key be the end of the fastmem region instead of the start.