You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +02:00
http: use av_strlcpy instead of strcpy() without size checks
Fixes CID700730.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user