XorTroll / Goldleaf

🍂 Multipurpose homebrew tool for Nintendo Switch
GNU General Public License v3.0
2.65k stars 349 forks source link

File corruption during USB installation if MicroSD card is full #314

Closed JohnTheNerd closed 4 years ago

JohnTheNerd commented 5 years ago

File corruption during USB installation if MicroSD card is full

Bug description

If your microSD card is full to the brim and you try to install NSP's through USB that are larger than the free space, Goldleaf will corrupt random files in your microSD card. In my case, it was able to corrupt sept which prevented boot until restored.

Your setup

Bug reproduction

Simply install NSP's until you no longer have any space, and try to continue installing.

Additional information

A simple free space check would eliminate this problem in my opinion.

KiaraGrouwstra commented 5 years ago

I ran into this issue too. If this were done while installing to the console itself, I fear this could overwrite save games as well.

XorTroll commented 5 years ago

This shouldn't make sense, since Goldleaf checks the SD card's free space before installing.

KiaraGrouwstra commented 5 years ago

I can't say I have an explanation, but I believe #324 corresponds to this issue as well.

XorTroll commented 5 years ago

As soon as 0.7 is released mind trying with it the same steps that caused this?

lookye commented 4 years ago

@JohnTheNerd @tycho01 any news from you on this case with the latest releases?

JohnTheNerd commented 4 years ago

I have (accidentally) tested this with the newest version and can confirm the issue no longer exists

EDIT: I did not notice that 0.8 came out, I only tested 0.7.2