Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Make sure we don't read past the end of a C-string in format_track_path. Second part of FS #11947

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29326 a1c6a512-1295-4272-9138-f99709370657

+4 -2
+4 -2
apps/playlist.c
··· 1659 1659 int j; 1660 1660 char *temp_ptr; 1661 1661 1662 - /* Zero-terminate the file name */ 1662 + /* Look for the end of the string */ 1663 1663 while((i < max) && 1664 1664 (src[i] != '\n') && 1665 - (src[i] != '\r')) 1665 + (src[i] != '\r') && 1666 + (src[i] != '\0')) 1666 1667 i++; 1667 1668 1668 1669 /* Now work back killing white space */ ··· 1671 1672 (src[i-1] == '\t'))) 1672 1673 i--; 1673 1674 1675 + /* Zero-terminate the file name */ 1674 1676 src[i]=0; 1675 1677 1676 1678 /* replace backslashes with forward slashes */