Commit a87f67e3 authored by rbultje's avatar rbultje

Fix allocated length of the HTTP authentication request field buffer, as

noticed by Stefano and Luca in the "[PATCH]RTSP Basic Authentication"
mailinglist thread.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17761 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cc4769b7
...@@ -212,7 +212,7 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr, ...@@ -212,7 +212,7 @@ static int http_connect(URLContext *h, const char *path, const char *hoststr,
int post, err, ch; int post, err, ch;
char line[1024], *q; char line[1024], *q;
char *auth_b64; 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; int64_t off = s->off;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment