Commit 3b4630c1 authored by Wenxiang Qian's avatar Wenxiang Qian Committed by Michael Niedermayer

avformat/http: Fix Out-of-Bounds access in process_line()

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 85f91ed7)
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent e62abf93
...@@ -871,7 +871,7 @@ static int process_line(URLContext *h, char *line, int line_count, ...@@ -871,7 +871,7 @@ static int process_line(URLContext *h, char *line, int line_count,
while (av_isspace(*p)) while (av_isspace(*p))
p++; p++;
resource = p; resource = p;
while (!av_isspace(*p)) while (*p && !av_isspace(*p))
p++; p++;
*(p++) = '\0'; *(p++) = '\0';
av_log(h, AV_LOG_TRACE, "Requested resource: %s\n", resource); av_log(h, AV_LOG_TRACE, "Requested resource: %s\n", resource);
......
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