Commit 85f91ed7 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>
parent a142ffdc
......@@ -915,7 +915,7 @@ static int process_line(URLContext *h, char *line, int line_count,
while (av_isspace(*p))
p++;
resource = p;
while (!av_isspace(*p))
while (*p && !av_isspace(*p))
p++;
*(p++) = '\0';
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