[vlc-commits] asf: Reject streams with invalid entry time interval

Hugo Beauzée-Luyssen git at videolan.org
Wed Aug 14 18:24:28 CEST 2019


vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Aug  2 14:02:44 2019 +0200| [aa15d138089c8bc1ead129b6822df7e8cd4e85c5] | committer: Hugo Beauzée-Luyssen

asf: Reject streams with invalid entry time interval

CVE-2019-14535

(cherry picked from commit 4d2f92b67e99a04553305ffd7656f0308c520d1f)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

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

diff --git a/modules/demux/asf/libasf.c b/modules/demux/asf/libasf.c
index 89ebcbf501..e14943b78f 100644
--- a/modules/demux/asf/libasf.c
+++ b/modules/demux/asf/libasf.c
@@ -276,6 +276,12 @@ static int ASF_ReadObject_Index( stream_t *s, asf_object_t *p_obj )
 #endif
 
     /* Sanity checking */
+    if( !p_index->i_index_entry_time_interval )
+    {
+        /* We can't use this index if it has an invalid time interval */
+        p_index->i_index_entry_count = 0;
+        return VLC_ENOMEM;
+    }
     if( p_index->i_index_entry_count > (p_index->i_object_size - 56) / 6 )
         p_index->i_index_entry_count = (p_index->i_object_size - 56) / 6;
 



More information about the vlc-commits mailing list