Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JitArm64: Make HandleFastmemFault less unsafe #10049

Merged
merged 1 commit into from Aug 24, 2021

Conversation

JosJuice
Copy link
Member

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.

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.
@lioncash lioncash merged commit 922f53e into dolphin-emu:master Aug 24, 2021
11 checks passed
@JosJuice JosJuice deleted the jitarm64-fault-to-handler branch August 24, 2021 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants