[FFmpeg-devel] [PATCH] for bug in libavformat/avio.c
Wed Nov 7 09:33:58 CET 2007
Michael Niedermayer wrote:
> On Tue, Nov 06, 2007 at 04:11:50PM +0100, Thorsten Jordan wrote:
>> i encountered a SIGSEGV in libavformat/avio.c when one registers an own
>> protocol and lets the url_open fail.
>> The reason is that url_fopen() calls url_open() and after that
>> url_fdopen() which calls init_put_byte() to set ByteIOContext::opaque.
>> If url_open() fails, opaque is 0, but in url_close this is not checked
>> -> segfault.
>> Attached patch fixes this.
> looks ok
Purple Labs S.A.
More information about the ffmpeg-devel