[FFmpeg-devel] [PATCH] Fix avfilter_open wrong 0-sized allocations

Stefano Sabatini stefano.sabatini-lala
Mon Jan 12 01:40:10 CET 2009

Hi, av_malloc() and av_mallocz() when called with a size of 0 will
return a 16 aligned block, so that the pads and inputs/outputs will
result non-NULL.

The patch should improve safety, and force those fields to be set to 0
when the corresponding size is 0, allowing nullness checks on the

FFmpeg = Friendly Fostering Mastering Patchable Embarassing Ghost
-------------- next part --------------
A non-text attachment was scrubbed...
Name: avfilter-open-nullness-00.patch
Type: text/x-diff
Size: 1168 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090112/4efaee04/attachment.patch>

More information about the ffmpeg-devel mailing list