Fixes CID700730.
---
libavformat/http.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/http.c b/libavformat/http.c
index 43c6cbc..9666ca3 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);
--
1.7.12
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel