Commit 2dcfef38 authored by mstorsjo's avatar mstorsjo

ffserver: Fix an out of bounds read

Fix by Howard Chu, hyc at highlandsun dot com


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23292 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 18963d60
......@@ -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