[FFmpeg-devel] [PATCH] ffserver rtsp bug fixes

Howard Chu hyc
Tue May 18 17:06:47 CEST 2010


Howard Chu wrote:
> This patch plugs a number of per-session memory leaks in the rtsp code. Also
> replaced one instance of strchr() with memchr() to silence a valgrind warning
> about running off into the weeds (reading uninit'd memory). Unfortunately
> there are still a large number of those...

All of my testing so far was with streams coming from an ffm feed. I just 
found this bug while running valgrind using a stream read from a file. Streams 
read from a file will reference freed memory because add_av_stream1() didn't 
copy the extradata from the codec.

Note that I still haven't gotten ffserver to successfully stream anything from 
a file, there are plenty more problems left to chase down.
-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: filefix.txt
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100518/a2ee6324/attachment.txt>



More information about the ffmpeg-devel mailing list