[FFmpeg-devel] [PATCH] Deprecate av_fifo_realloc() in favour of a safer av_fifo_realloc2()

Stefano Sabatini stefano.sabatini-lala
Wed Aug 6 00:01:32 CEST 2008


Hi all,

in the case the av_malloc() performed in av_fifo_init() inside
av_fifo_relloc() fails, and if the buffer in the fifo to realloc
contains something, the av_fifo_realloc() issues a crash.

Test application which reproduces the issue and my solution attached.

Yes the libavutil minor version bump is missing.

Regards.
-- 
FFmpeg = Forgiving Funny Mind-dumbing Problematic Efficient Genius
-------------- next part --------------
A non-text attachment was scrubbed...
Name: av-fifo-test.c
Type: text/x-csrc
Size: 449 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080806/8093686a/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: implement-av-fifo-realloc2-00.patch
Type: text/x-diff
Size: 1704 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080806/8093686a/attachment.patch>



More information about the ffmpeg-devel mailing list