[vlc-commits] demux: libasf: fix invalid extension size on failed malloc

Francois Cartegnie git at videolan.org
Mon Feb 13 17:23:11 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Feb 13 17:04:07 2017 +0100| [e098e2daf7044ed61d967d1eab3b109f22d0ee15] | committer: Francois Cartegnie

demux: libasf: fix invalid extension size on failed malloc

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

 modules/demux/asf/libasf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/asf/libasf.c b/modules/demux/asf/libasf.c
index 99d5682..ee52b09 100644
--- a/modules/demux/asf/libasf.c
+++ b/modules/demux/asf/libasf.c
@@ -493,6 +493,7 @@ static int ASF_ReadObject_header_extension( stream_t *s, asf_object_t *p_obj )
     else
     {
         p_he->p_header_extension_data = NULL;
+        p_he->i_header_extension_size = 0;
     }
 
 #ifdef ASF_DEBUG



More information about the vlc-commits mailing list