Closed bgK closed 4 years ago
Can confirm I've encountered this bug on Switch, especially when reading large files like PK3 archives in Quake 3.
I have tested with the fread.c file reverted to original newlib code and this sequence of events still reads the wrong data.
False alarm
this is fixed with devkitARM r54 and devkitA64 r15
While investigating this downstream bug, I've noticed an issue with a patch devkitPro does to newlib's
fread
function: https://bugs.scummvm.org/ticket/11342The program does the following calls to trigger data corruption:
I suggest reverting this patch: https://github.com/devkitPro/newlib/blob/a7caafc1971a52eaeb86eed0d59179bcb42e1ddc/newlib/libc/stdio/fread.c#L231