[FFmpeg-cvslog] avutil/buffer: remove redundant memory poisoning

Michael Niedermayer git at videolan.org
Sun Mar 24 02:27:10 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Mar 24 02:21:42 2013 +0100| [8e944891ce95ec8cf9f492d41cb9dac869449210] | committer: Michael Niedermayer

avutil/buffer: remove redundant memory poisoning

Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8e944891ce95ec8cf9f492d41cb9dac869449210
---

 libavutil/buffer.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavutil/buffer.c b/libavutil/buffer.c
index 592527c..bccf089 100644
--- a/libavutil/buffer.c
+++ b/libavutil/buffer.c
@@ -71,9 +71,6 @@ AVBufferRef *av_buffer_alloc(int size)
     if (!data)
         return NULL;
 
-    if(CONFIG_MEMORY_POISONING)
-        memset(data, 0x2a, size);
-
     ret = av_buffer_create(data, size, av_buffer_default_free, NULL, 0);
     if (!ret)
         av_freep(&data);



More information about the ffmpeg-cvslog mailing list