[vlc-commits] demux: mp4: fix heap read ofw in extra bytes

Francois Cartegnie git at videolan.org
Fri Oct 10 00:01:57 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Oct  9 23:46:35 2014 +0200| [54bbfac289eeeed9ba044bf9f9e1ee43e5642c78] | committer: Francois Cartegnie

demux: mp4: fix heap read ofw in extra bytes

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

 modules/demux/asf/asf.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/asf/asf.c b/modules/demux/asf/asf.c
index 017a356..0622ff8 100644
--- a/modules/demux/asf/asf.c
+++ b/modules/demux/asf/asf.c
@@ -1024,7 +1024,7 @@ static int DemuxInit( demux_t *p_demux )
 
                 if( p_sp->i_type_specific_data_length > sizeof( WAVEFORMATEX ) &&
                     i_format != WAVE_FORMAT_MPEGLAYER3 &&
-                    i_format != WAVE_FORMAT_MPEG )
+                    i_format != WAVE_FORMAT_MPEG && i_data >= 19 )
                 {
                     GET_CHECKED( fmt.i_extra, __MIN( GetWLE( &p_data[16] ),
                                          p_sp->i_type_specific_data_length -



More information about the vlc-commits mailing list