[FFmpeg-cvslog] avformat/http: Fix Out-of-Bounds access in process_line()

Wenxiang Qian git at videolan.org
Fri May 10 22:02:37 EEST 2019


ffmpeg | branch: release/3.2 | Wenxiang Qian <leonwxqian at qq.com> | Wed Feb 13 08:54:08 2019 +0100| [a0692be43b87b0a346fac585d2b77dcbe418e1d6] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit 85f91ed760a517c0d5fcf692d40a5a9d7efa9476)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a0692be43b87b0a346fac585d2b77dcbe418e1d6
---

 libavformat/http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index 64549612d0..84a63f0c66 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -766,7 +766,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);



More information about the ffmpeg-cvslog mailing list