shithub: cuefs

Download patch

ref: 6bd9dbecc52670bb62de1154415df8872cc3fc3b
parent: 11b150a2bb01fbf09ae7cfee553dda0e8af5334d
author: Tevo <estevan.cps@gmail.com>
date: Sat Dec 26 14:41:47 EST 2020

Nevermind

--- a/BUGS	Sat Dec 26 13:51:28 2020
+++ b/BUGS	Sat Dec 26 14:41:47 2020
@@ -1,4 +1,5 @@
 • unsure if seeking on a file works correctly
+• sometimes crashes on unmount (buffer overflow caught by free())
 • current treatment of lossy sources is less than ideal
 • can only serve .wav and raw pcm files (no flac encoder)
 • everything will get resampled to 44100kHz/16bit/2channel
--- a/cue.c	Sat Dec 26 13:51:28 2020
+++ b/cue.c	Sat Dec 26 14:41:47 2020
@@ -63,7 +63,7 @@
 		 * the Cuesheet, even if they're "song only" performers?
 		 */
 		if(e->performer != s->performer)
-			free(e->title);
+			free(e->performer);
 
 		free(e);
 	}
@@ -213,7 +213,7 @@
 char*
 extension(char *f)
 {
-	char *ext;
+	char *ext = nil;
 
 	for(; *f != 0; f++)
 		if(*f == '.')