• Reimar Döffinger's avatar
    Add and use av_fast_padded_malloc. · 3b55429d
    Reimar Döffinger authored
    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: 's avatarReimar Döffinger <Reimar.Doeffinger@gmx.de>
    3b55429d
asv1.c 20.1 KB