From 8a601d66cb7d71bcd7c8f018da11aa7c42fe3fe8 Mon Sep 17 00:00:00 2001 From: vobe Date: Thu, 25 Dec 2014 12:11:32 +0100 Subject: [PATCH] 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. --- pico/cd/cd_image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pico/cd/cd_image.c b/pico/cd/cd_image.c index 07b55ceb..ae2ef0cd 100644 --- a/pico/cd/cd_image.c +++ b/pico/cd/cd_image.c @@ -61,6 +61,7 @@ static void to_upper(char *d, const char *s) else *d = *s; } + *d = 0; } // cdd.c uses lba - 150 -- 2.39.5