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.

[BugFix] pathfuncs.c path_append_ex basepath_max might cause buffer ovfl

strlcpy returns the length of the string that would have been copied
had there been sufficient space basepath_max might still be
larger than buf_size yet smaller than len
which would result in a null terminator being written past buf[buf_size-1]

Change-Id: I43e8ba9f72ea35bfe4f759ecd102c2e4bd26eb75

+1 -1
+1 -1
firmware/common/pathfuncs.c
··· 570 570 if (basepath_max < len) /*if needed truncate basepath to basepath_max */ 571 571 { 572 572 len = basepath_max; 573 - buf[basepath_max] = '\0'; 573 + buf[MIN(bufsize - 1, basepath_max)] = '\0'; 574 574 } 575 575 } 576 576