Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37838121
en ru br
Репозитории ALT
S:1.31.3-alt1
D:0.66-alt0.1
5.1: 1.9.0-alt1
4.1: 0.59s-alt0.9
4.0: 0.59s-alt0.9
3.0: 0.59s-alt0.8
www.altlinux.org/Changes

Группа :: Звук
Пакет: mpg123

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: mpg123-0.59s-security-http.patch
Скачать


--- mpg123~/httpget.c	2000-10-30 17:45:12 +0000
+++ mpg123/httpget.c	2003-09-25 16:04:38 +0000
@@ -50,12 +50,11 @@ void writestring (int fd, char *string)
 
 void readstring (char *string, int maxlen, FILE *f)
 {
-#if 0
 	char *result;
-#endif
+#if 0
 	int pos = 0;
 
-	while(1) {
+	while(maxlen>pos) {
 		if( read(fileno(f),string+pos,1) == 1) {
 			pos++;
 			if(string[pos-1] == '\n') {
@@ -68,7 +67,7 @@ void readstring (char *string, int maxle
 			exit(1);
 		}
 	}
-#if 0
+#endif
 	do {
 		result = fgets(string, maxlen, f);
 	} while (!result  && errno == EINTR);
@@ -76,7 +75,6 @@ void readstring (char *string, int maxle
 		fprintf (stderr, "Error reading from socket or unexpected EOF.\n");
 		exit (1);
 	}
-#endif
 
 }
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin