[FFmpeg-cvslog] r23292 - trunk/ffserver.c

mstorsjo subversion
Mon May 24 21:23:31 CEST 2010


Author: mstorsjo
Date: Mon May 24 21:23:31 2010
New Revision: 23292

Log:
ffserver: Fix an out of bounds read

Fix by Howard Chu, hyc at highlandsun dot com

Modified:
   trunk/ffserver.c

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	Mon May 24 21:12:00 2010	(r23291)
+++ trunk/ffserver.c	Mon May 24 21:23:31 2010	(r23292)
@@ -2880,7 +2880,7 @@ static int rtsp_parse_request(HTTPContex
     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;



More information about the ffmpeg-cvslog mailing list