diff options
author | Martin Storsjö <martin@martin.st> | 2010-05-24 19:23:31 +0000 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-05-24 19:23:31 +0000 |
commit | c966c91279f8bca0f1d4865779519b077a2221f0 (patch) | |
tree | 909b235415faec1ae28d7c3b7fea218752fd384d | |
parent | 9cc9a155100d4364ad02d50e89b313ec94195102 (diff) | |
download | ffmpeg-c966c91279f8bca0f1d4865779519b077a2221f0.tar.gz |
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
-rw-r--r-- | ffserver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c index 4217735077..e3b53fb7ef 100644 --- a/ffserver.c +++ b/ffserver.c @@ -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; |