Today's bug is a `mikmod` player "stack overflow": https://sourceforge.net/p/mikmod/patches/17/
On distributions that build C code with `-D_FORTIFY_SOURCE=3` `mikmod` crashes at startup.
It's caused by buffer size calculation mismatch when offset in buffer is used:
char paneltitle[STORAGELEN];
SNPRINTF(paneltitle + strlen(paneltitle), STORAGELEN, "%c%s%c", ...
It should be something closer to:
SNPRINTF(paneltitle + strlen(paneltitle), STORAGELEN - strlen(paneltitle), "%c%s%c", ...
Remember #MikMod?
Pepperidge Farm rememembers!
#Mod #ModFiles #Chiptunes #AmigaMod #FreeBSD #PepperidgeFarmRemembers