Browse code

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

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

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

Michael Niedermayer authored on 2014/06/08 21:30:30
Showing 1 changed files
... ...
@@ -285,7 +285,7 @@ static av_cold int read_specific_config(ALSDecContext *ctx)
285 285
     GetBitContext gb;
286 286
     uint64_t ht_size;
287 287
     int i, config_offset;
288
-    MPEG4AudioConfig m4ac;
288
+    MPEG4AudioConfig m4ac = {0};
289 289
     ALSSpecificConfig *sconf = &ctx->sconf;
290 290
     AVCodecContext *avctx    = ctx->avctx;
291 291
     uint32_t als_id, header_size, trailer_size;