summaryrefslogtreecommitdiff
path: root/multimedia/libxine/files/patch-src_input_input_http.c
blob: 16cba0bcd3f8fea35e5256fc9dfed2519791ee38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- src/input/input_http.c.orig	Tue Jun  6 21:16:04 2006
+++ src/input/input_http.c	Tue Jun  6 21:22:34 2006
@@ -895,6 +895,12 @@
 	len = 0;
     } else
       len ++;
+    if ( len >= BUFSIZE ) {
+       _x_message(this->stream, XINE_MSG_PERMISSION_ERROR, this->mrl, NULL);
+       xine_log (this->stream->xine, XINE_LOG_MSG,
+         _("input_http: buffer exhausted after %d bytes."), BUFSIZE);
+       return 0;
+    }
   }
 
   lprintf ("end of headers\n");