[vlc-commits] demux: mp4: fix uninitialized stack var

Francois Cartegnie git at videolan.org
Wed Jul 20 16:25:03 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jul 20 16:22:09 2016 +0200| [3a1bdea5b17572552e0f8306e697ce4cafecd809] | committer: Francois Cartegnie

demux: mp4: fix uninitialized stack var

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3a1bdea5b17572552e0f8306e697ce4cafecd809
---

 modules/demux/mp4/essetup.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/mp4/essetup.c b/modules/demux/mp4/essetup.c
index a04cb04..fe64672 100644
--- a/modules/demux/mp4/essetup.c
+++ b/modules/demux/mp4/essetup.c
@@ -948,6 +948,7 @@ int SetupAudioES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
         if ( BOXDATA(p_chan)->layout.i_channels_layout_tag == MP4_CHAN_USE_CHANNELS_BITMAP )
         {
             uint32_t rgi_chans_sequence[AOUT_CHAN_MAX + 1];
+            memset(rgi_chans_sequence, 0, sizeof(rgi_chans_sequence));
             uint16_t i_vlc_mapping = 0;
             uint8_t i_channels = 0;
             const uint32_t i_bitmap = BOXDATA(p_chan)->layout.i_channels_bitmap;



More information about the vlc-commits mailing list