mirror of
https://github.com/FunKey-Project/picodrive-irixxxx.git
synced 2026-02-02 21:15:40 +01:00
Prevent segfault while scanning for MP3 files
Make sure the destination string is NULL-terminated when building the uppercase extension. The tmp_ext_u array is uninitialized when it's passed to this function.
This commit is contained in:
parent
2babf3518e
commit
8a601d66cb
@ -61,6 +61,7 @@ static void to_upper(char *d, const char *s)
|
||||
else
|
||||
*d = *s;
|
||||
}
|
||||
*d = 0;
|
||||
}
|
||||
|
||||
// cdd.c uses lba - 150
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user