aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-10-09 20:50:50 +0200
committerJanne Grunau <janne-libav@jannau.net>2012-10-09 21:05:14 +0200
commit4a7c0c4555477c9367fb45ee0cc10e4351e53930 (patch)
treed9eb2cadb99093581ac37804c1156d2edbdc1a01 /libavformat
parent79e6e8eba203d48de4f0df0ec59fa385022cb5cd (diff)
downloadffmpeg-4a7c0c4555477c9367fb45ee0cc10e4351e53930.tar.gz
http: use av_strlcpy instead of strcpy() without size checks
Fixes CID700730.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/http.c b/libavformat/http.c
index 43c6cbc032..9666ca3206 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -308,7 +308,7 @@ static int process_line(URLContext *h, char *line, int line_count,
while (isspace(*p))
p++;
if (!av_strcasecmp(tag, "Location")) {
- strcpy(s->location, p);
+ av_strlcpy(s->location, p, sizeof(s->location));
*new_location = 1;
} else if (!av_strcasecmp (tag, "Content-Length") && s->filesize == -1) {
s->filesize = strtoll(p, NULL, 10);