projects
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Reduce allocated length of the HTTP authentication request field buffer, as
[ffmpeg.git]
/
libavformat
/
http.c
diff --git
a/libavformat/http.c
b/libavformat/http.c
index
2e6a1db
..
039ef7b
100644
(file)
--- a/
libavformat/http.c
+++ b/
libavformat/http.c
@@
-212,7
+212,7
@@
static int http_connect(URLContext *h, const char *path, const char *hoststr,
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;