RSDuck / vba-next-switch

Libretro VBA-Next port for Switch. **Don't use this, see readme!**
GNU General Public License v2.0
110 stars 11 forks source link

Crash on large rom directory #33

Open myMartek opened 6 years ago

myMartek commented 6 years ago

Hi, I have a directory on my switch which contains all english roms ever. When I navigate to this directory I can see some strange graphic artifacts where the "B" button and the VBA logo should be. As soon I go a directory back or start a rom the switch becomes unresponsive.

When I open a directory with less files everything works as expected.

fennectech commented 6 years ago

This sounds like a buffer overflow.

RSDuck commented 6 years ago

yes, it is probably one. The buffer where the directory names are stored in has a fixed size. Though it should just leave the folders out, after the buffer is full.