diff options
author | Wenxiang Qian <leonwxqian@qq.com> | 2019-02-13 08:54:08 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-03-24 10:38:51 +0100 |
commit | 3b4630c181cba8c2416a90e7fc7cc4beacb33a99 (patch) | |
tree | f111f8fcffadaa68988e7c339c68fcbf547f9be0 /libavformat | |
parent | e62abf9398633c6341e34e8f2eab781dd5bf040f (diff) | |
download | ffmpeg-3b4630c181cba8c2416a90e7fc7cc4beacb33a99.tar.gz |
avformat/http: Fix Out-of-Bounds access in process_line()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 85f91ed760a517c0d5fcf692d40a5a9d7efa9476)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-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 d066b639b5..0112f64b4c 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -871,7 +871,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); |