Commit c966c912 authored by Martin Storsjö's avatar Martin Storsjö

ffserver: Fix an out of bounds read

Fix by Howard Chu, hyc at highlandsun dot com

Originally committed as revision 23292 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 9cc9a155
......@@ -2880,7 +2880,7 @@ static int rtsp_parse_request(HTTPContext *c)
if (*p == '\n')
p++;
while (*p != '\0') {
p1 = strchr(p, '\n');
p1 = memchr(p, '\n', (char *)c->buffer_ptr - p);
if (!p1)
break;
p2 = p1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment