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

Core: Fix IPL device m_cursor overflow #12667

Merged
merged 2 commits into from Mar 26, 2024

Conversation

JosJuice
Copy link
Member

Not sure if the behavior I'm implementing here is what real hardware does, but since this is a buffer overflow, I'd like to get it fixed quickly. Hardware verification can happen later.

https://bugs.dolphin-emu.org/issues/13506

Having to look up macros that are defined elsewhere makes the code
harder to reason about. The macros don't remove enough repetition to
justify their existence in my opinion.
Not sure if the behavior I'm implementing here is what real hardware
does, but since this is a buffer overflow, I'd like to get it fixed
quickly. Hardware verification can happen later.

https://bugs.dolphin-emu.org/issues/13506
Copy link
Contributor

@AdmiralCurtiss AdmiralCurtiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, definitely better to wrap than to overflow, even if we don't know the actual hardware behavior at the moment.

Copy link

@ElectrifiedStrawberry ElectrifiedStrawberry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm. Not sure the actual hardware behavior either, but this does fix the overflow.

@AdmiralCurtiss AdmiralCurtiss merged commit 1efda86 into dolphin-emu:master Mar 26, 2024
11 checks passed
@JosJuice JosJuice deleted the ipl-oob branch March 26, 2024 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants