reswitched / pegaswitch

PegaSwitch is an exploit toolkit for the Nintendo Switch
https://reswitched.team
ISC License
934 stars 107 forks source link

Add dump partition script #105

Closed roblabla closed 6 years ago

roblabla commented 6 years ago

Allows dumping all kind of things.

Selver-gba commented 6 years ago

The second free() call needs to be removed. I think the script was originally written to separately call malloc() for the FS Access Header and for the FS Access Control structures. But, it's currently written to malloc() a single combined buffer for both. Therefore, only the first pointer is a valid allocation to be free()'d.