Skip to content

Commit

Permalink
avformat/http: Fix Out-of-Bounds access in process_line()
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
  • Loading branch information
leonwxqian authored and michaelni committed Feb 17, 2019
1 parent a142ffd commit 85f91ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavformat/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 85f91ed

Please sign in to comment.