[FFmpeg-cvslog] r17761 - trunk/libavformat/http.c

rbultje subversion
Tue Mar 3 14:26:17 CET 2009


Author: rbultje
Date: Tue Mar  3 14:26:17 2009
New Revision: 17761

Log:
Fix allocated length of the HTTP authentication request field buffer, as
noticed by Stefano and Luca in the "[PATCH]RTSP Basic Authentication"
mailinglist thread.

Modified:
   trunk/libavformat/http.c

Modified: trunk/libavformat/http.c
==============================================================================
--- trunk/libavformat/http.c	Tue Mar  3 14:25:53 2009	(r17760)
+++ trunk/libavformat/http.c	Tue Mar  3 14:26:17 2009	(r17761)
@@ -212,7 +212,7 @@ static int http_connect(URLContext *h, c
     int post, err, ch;
     char line[1024], *q;
     char *auth_b64;
-    int auth_b64_len = strlen(auth)* 4 / 3 + 12;
+    int auth_b64_len = (strlen(auth) + 2) / 3 * 4 + 1;
     int64_t off = s->off;
 
 




More information about the ffmpeg-cvslog mailing list