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

Michael Niedermayer michaelni
Mon Jan 12 16:44:07 CET 2009

On Mon, Jan 12, 2009 at 01:40:10AM +0100, Stefano Sabatini wrote:
> 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
> pointers.


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato
-------------- 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/20090112/8e34898e/attachment.pgp>

More information about the ffmpeg-devel mailing list