mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
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
This commit is contained in:
parent
9cc9a15510
commit
c966c91279
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user