[FFmpeg-devel] [PATCH] for bug in libavformat/avio.c

Thorsten Jordan tjordan
Tue Nov 6 16:11:50 CET 2007


Hello,

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.

I hope it is ok to post this here, or should it go to roundup?

-- 
Greetings, Thorsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: avio_url_close_check_for_NULL.patch
Type: text/x-patch
Size: 352 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071106/4931b2a1/attachment.bin>



More information about the ffmpeg-devel mailing list