ef9c1eaf7a388d0ba97f128defae3a546117b125
The listdir function had three memory corruption bugs causing a
data abort (Err:19) on the Switch:
1. Heap buffer overflow: CpyStr("sd:/") allocated only 5 bytes but
listdir appends full subdirectory paths in-place via memcpy.
Fixed by using a 1024-byte stack buffer instead.
2. Use-after-free: _DeleteFileSimple(path) freed the shared traversal
buffer, but the loop continued using it. Fixed by inlining f_unlink
without freeing.
3. Recursive free + missing else: free(path) at the end of listdir
freed the buffer shared across all recursive frames, and a missing
else caused recursion into directories that were just deleted.
Removed the free and added an else guard.
Co-authored-by: Cursor <cursoragent@cursor.com>
AllgemeinerProblemLoeser (APL)
Rette deine Switch ohne PC!
Original-Projekt: Common Problem Resolver von Team Neptune.
Nutzung
- Besorge dir einen Payload-Injector deiner Wahl
- Lade APL als Payload
Navigation in den Menues mit den Joy-Cons:
- A: Auswaehlen
- B: Zurueck
- Linker Stick hoch/runter (D-Pad oder Stick): Menue hoch/runter
- Rechter Stick hoch/runter: Schnelle Menue-Navigation
- Capture (nur Minerva): Screenshot
- L3/R3 (Sticks eindruecken): Mittelpunkt neu kalibrieren
Ohne verbundene Joy-Cons:
- Power -> A
- Vol+ -> Linker Stick hoch
- Vol- -> Linker Stick runter
Funktionen
- Deaktiviert automatischen Sysmodule-Start (kann Startprobleme nach Updates beheben)
- Loescht installierte Themes (kann Startprobleme nach Updates beheben)
- Behebt Archiv-Bit (SD-Karte)
- Entfernt Mac-Sonderordner
Support
Fuer Hilfe: unser Discord
Danksagungen
- Deutsche Uebersetzung: Switch Bros.
- Dieses Projekt basiert stark auf dem Original Common Problem Resolver von Team Neptune, sowie auf TegraExplorer von suchmememanyskill, Lockpick_RCM und Hekate.
Languages
C
96.6%
C++
3%
Assembly
0.2%
Makefile
0.2%