diff options
author | Wenxiang Qian <leonwxqian@qq.com> | 2019-02-13 08:54:08 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-02-17 10:29:42 +0100 |
commit | 85f91ed760a517c0d5fcf692d40a5a9d7efa9476 (patch) | |
tree | 984ec7fd14c083a7f50e141a6b0e832dab8e5e5d /libavformat/http.c | |
parent | a142ffdcaec06fcbf7d4b00dbb0e5ddfb9e3344d (diff) | |
download | ffmpeg-85f91ed760a517c0d5fcf692d40a5a9d7efa9476.tar.gz |
avformat/http: Fix Out-of-Bounds access in process_line()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/http.c')
-rw-r--r-- | libavformat/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/http.c b/libavformat/http.c index a0a0636cf2..072a6ce0b9 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -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); |