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

Remove weird buffering from WII_IPC_HLE_Device_sdio_slot0.cpp #542

Merged
merged 1 commit into from Aug 4, 2014

Conversation

Parlane
Copy link
Member

@Parlane Parlane commented Jun 30, 2014

No description provided.

@BhaaLseN
Copy link
Member

Why was it there in first place?

@magumagu
Copy link
Contributor

The difference between the old code and the new code is that the new code can crash Dolphin... granted, our memory code is a mess, but this isn't a step in the right direction.

@magcius
Copy link
Member

magcius commented Jun 30, 2014

How can the new code crash?

@magumagu
Copy link
Contributor

Memory::GetPointer can return null.

@magcius
Copy link
Member

magcius commented Jun 30, 2014

Would that ever happen in any case that also wouldn't crash the Wii?

@delroth
Copy link
Member

delroth commented Jun 30, 2014

Also, with Memory::Read8 as currently done, IPC_HLE can trigger a DSI,
which is probably even more wrong than crashing Dolphin.

On Mon, Jun 30, 2014 at 9:44 PM, Jasper St. Pierre <notifications@github.com

wrote:

Would that ever happen in any case that also wouldn't crash the Wii?


Reply to this email directly or view it on GitHub
#542 (comment).

Pierre "delroth" Bourdon delroth@gmail.com
Software Engineer @ Zürich, Switzerland
http://code.delroth.net/

@magumagu
Copy link
Contributor

It wouldn't happen normally. I'm not completely sure how a Wii would react..

@delroth
Copy link
Member

delroth commented Jun 30, 2014

IPC request would return an error. IOS usually checks where the data comes
from before reading it (equivalent of copy_from_user in the Linux kernel).
"usually" being the keyword, since IOS is not really secure or consistent
in what it does.

On Mon, Jun 30, 2014 at 9:51 PM, magumagu notifications@github.com wrote:

It wouldn't happen normally. I'm not completely sure how a Wii would
react..


Reply to this email directly or view it on GitHub
#542 (comment).

Pierre "delroth" Bourdon delroth@gmail.com
Software Engineer @ Zürich, Switzerland
http://code.delroth.net/

@delroth
Copy link
Member

delroth commented Aug 4, 2014

Since the old code was just as wrong as the new one on top of being slow, I don't think the use of GetPointer should block this PR.

delroth added a commit that referenced this pull request Aug 4, 2014
Remove weird buffering from WII_IPC_HLE_Device_sdio_slot0.cpp
@delroth delroth merged commit b1553b4 into dolphin-emu:master Aug 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants