ffmpeg | branch: release/3.4 | Wenxiang Qian <[email protected]> | Wed Feb 13 08:54:08 2019 +0100| [3b4630c181cba8c2416a90e7fc7cc4beacb33a99] | committer: Michael Niedermayer
avformat/http: Fix Out-of-Bounds access in process_line() Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit 85f91ed760a517c0d5fcf692d40a5a9d7efa9476) Signed-off-by: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3b4630c181cba8c2416a90e7fc7cc4beacb33a99 --- libavformat/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
