[FFmpeg-devel] [PATCH] Fix avfilter_open wrong 0-sized allocations
Mon Jan 12 21:32:53 CET 2009
On date Monday 2009-01-12 16:44:07 +0100, Michael Niedermayer encoded:
> 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.
FFmpeg = Fostering Fundamental Murdering Portable Efficient Game
More information about the ffmpeg-devel