[FFmpeg-cvslog] avcodec/alsdec: Clear MPEG4AudioConfig so that no use of uninitialized memory is possible

Michael Niedermayer git at videolan.org
Wed Jun 25 17:01:46 CEST 2014


ffmpeg | branch: release/2.0 | Michael Niedermayer <michaelni at gmx.at> | Sun Jun  8 14:30:30 2014 +0200| [b94621ac6ba6ab12476c81218c88f43bd2f1d27b] | committer: Michael Niedermayer

avcodec/alsdec: Clear MPEG4AudioConfig so that no use of uninitialized memory is possible

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 6e6bd5481cf42a9765c492c77754d4633092cece)

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

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

 libavcodec/alsdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index e7aeb0c..5e08295 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -280,7 +280,7 @@ static av_cold int read_specific_config(ALSDecContext *ctx)
     GetBitContext gb;
     uint64_t ht_size;
     int i, config_offset;
-    MPEG4AudioConfig m4ac;
+    MPEG4AudioConfig m4ac = {0};
     ALSSpecificConfig *sconf = &ctx->sconf;
     AVCodecContext *avctx    = ctx->avctx;
     uint32_t als_id, header_size, trailer_size;



More information about the ffmpeg-cvslog mailing list