Commit 8e944891 authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/buffer: remove redundant memory poisoning

Found-by: ubitux
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 058c0029
...@@ -71,9 +71,6 @@ AVBufferRef *av_buffer_alloc(int size) ...@@ -71,9 +71,6 @@ AVBufferRef *av_buffer_alloc(int size)
if (!data) if (!data)
return NULL; return NULL;
if(CONFIG_MEMORY_POISONING)
memset(data, 0x2a, size);
ret = av_buffer_create(data, size, av_buffer_default_free, NULL, 0); ret = av_buffer_create(data, size, av_buffer_default_free, NULL, 0);
if (!ret) if (!ret)
av_freep(&data); av_freep(&data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment