[FFmpeg-devel] [PATCH] for bug in libavformat/avio.c
Michael Niedermayer
michaelni
Tue Nov 6 19:36:46 CET 2007
On Tue, Nov 06, 2007 at 04:11:50PM +0100, Thorsten Jordan wrote:
> 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.
looks ok
>
> I hope it is ok to post this here
yes
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
In a rich man's house there is no place to spit but his face.
-- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071106/91f8cd12/attachment.pgp>
More information about the ffmpeg-devel
mailing list