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.

Fix off-by-one buffer read access in format_track_path(). Part of #11947

We need to check for "i < max" first.

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

+3 -3
+3 -3
apps/playlist.c
··· 1660 1660 char *temp_ptr; 1661 1661 1662 1662 /* Zero-terminate the file name */ 1663 - while((src[i] != '\n') && 1664 - (src[i] != '\r') && 1665 - (i < max)) 1663 + while((i < max) && 1664 + (src[i] != '\n') && 1665 + (src[i] != '\r')) 1666 1666 i++; 1667 1667 1668 1668 /* Now work back killing white space */