[FFmpeg-devel] [PATCH] Add and use av_fast_padded_malloc.
michaelni at gmx.at
Tue Jan 17 04:26:43 CET 2012
On Tue, Jan 17, 2012 at 12:18:17AM +0100, Reimar Döffinger wrote:
> The same as av_fast_malloc but uses av_mallocz and keeps extra
> always-0 padding.
> This does not mean the memory will be 0-initialized after each call,
> but actually only after each growth of the buffer.
> However this makes sure that
> a) all data anywhere in the buffer is always initialized
> b) the padding is always 0
> c) the user does not have to bother with adding the padding themselves
> Fixes another valgrind warning about use of uninitialized data,
> this time with fate-vsynth1-jpegls.
> Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel